gitlab-ce-arm64/latest-tag.sh
2020-12-10 13:56:22 +08:00

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