diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7438e952026b0e53bde8ace15a9707d786403747..bfac4c9052258cd12448bf782012f9b78c850d9d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 "