Skip to content
Snippets Groups Projects
Commit 6c8949cc authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

Push latest tag on main branch

parent 3c9e0863
No related branches found
No related tags found
2 merge requests!109Production Release,!104WIP: Sub Projects
......@@ -111,6 +111,13 @@ workflow:
]]; then
docker tag "${latest_image_name}" "usgs/${CI_PROJECT_NAME}:${ENVIRONMENT}-latest";
docker push "usgs/${CI_PROJECT_NAME}:${ENVIRONMENT}-latest";
if [[ ${CI_COMMIT_REF_SLUG} == "${CI_DEFAULT_BRANCH" ]]; then
docker tag \
"usgs/${CI_PROJECT_NAME}:${ENVIRONMENT}-latest" \
"usgs/${CI_PROJECT_NAME}:latest";
docker push "usgs/${CI_PROJECT_NAME}:latest";
fi
fi
- |
printf "
......
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