add latest-tag.sh
This commit is contained in:
parent
d50e88cb11
commit
dcb8a5451d
|
@ -0,0 +1,7 @@
|
|||
#!/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
|
Loading…
Reference in New Issue