mirror of
https://git.yrzr.tk/docker/gitlab-ce-arm64.git
synced 2024-11-22 13:28:12 +08:00
8 lines
196 B
Bash
8 lines
196 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
LATEST=$(git tag | sort -rV | head -n 1)
|
||
|
|
||
|
if [ "${LATEST}" == "${CI_COMMIT_TAG}" ]; then
|
||
|
docker tag ${DOCKER_NS}/${BASENAME}:${CI_COMMIT_TAG} ${DOCKER_NS}/${BASENAME}:latest;
|
||
|
fi
|