gitlab-ce-arm64/latest-tag.sh

8 lines
196 B
Bash
Raw Permalink Normal View History

2020-12-10 13:56:22 +08:00
#!/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