mirror of
https://git.yrzr.tk/docker/gitlab-ce-arm64.git
synced 2024-11-28 10:38: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
|