Skip to content
Snippets Groups Projects
Commit abb12d85 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: tag docker image as latest when on semver

parent 974e210b
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ major=${BASH_REMATCH[1]}
minor=${BASH_REMATCH[2]}
# Tag and push image for each additional tag
for tag in {"$major","${major}.${minor}"}; do
for tag in {"$major","${major}.${minor}","latest"}; do
echo "Tagging ${DOCKER_REPO}:${tag}"
docker tag $IMAGE_NAME ${DOCKER_REPO}:${tag}
docker push ${DOCKER_REPO}:${tag}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment