diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cd1594395f9959d81c5660f2d2c3e544a820eab2..931014f22c06b72c2f3aea468e2c7d1f2a6e781c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -111,22 +111,6 @@ default: - latest_image_name="${CODE_REGISTRY_IMAGE}/${CI_PROJECT_NAME}:${ENVIRONMENT}-latest"; - docker tag "${CODE_REGISTRY_IMAGE}/${CI_PROJECT_NAME}:${IMAGE_TAG}" "${latest_image_name}"; - docker push "${latest_image_name}"; - - if [[ - ${CI_COMMIT_REF_SLUG} == "${CI_DEFAULT_BRANCH}" || - ${CI_COMMIT_REF_SLUG} == "production" || - -n "${CI_COMMIT_TAG}" - ]]; 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}" && - "${CI_PROJECT_PATH}" == "${UPSTREAM_PATH}" - ]]; then - docker tag "usgs/${CI_PROJECT_NAME}:${ENVIRONMENT}-latest" "usgs/${CI_PROJECT_NAME}:latest"; - docker push "usgs/${CI_PROJECT_NAME}:latest"; - fi - fi - | printf " --------