mirror of
https://git.yrzr.tk/docker/gitlab-ce-arm64.git
synced 2024-11-22 06:18:12 +08:00
8 lines
196 B
Bash
Executable File
8 lines
196 B
Bash
Executable File
#!/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
|