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

fix variable

parent ba2c16ec
No related branches found
No related tags found
2 merge requests!619Production Release | nshmp-haz,!617push docker images
...@@ -119,10 +119,13 @@ default: ...@@ -119,10 +119,13 @@ default:
docker_env_image="usgs/${CI_PROJECT_NAME}:${ENVIRONMENT}-latest"; docker_env_image="usgs/${CI_PROJECT_NAME}:${ENVIRONMENT}-latest";
if [[ "${PUSH_DOCKER}" == true ]]; then if [[ "${PUSH_DOCKER}" == true ]]; then
docker tag "${latest_image_name}" "${docker_latest_image}";
docker tag "${latest_image_name}" "${docker_env_image}"; docker tag "${latest_image_name}" "${docker_env_image}";
docker push "${docker_latest_image}";
docker push "${docker_env_image}"; docker push "${docker_env_image}";
if [[ "${ENVIRONMENT}" != "development" ]]; then
docker tag "${latest_image_name}" "${docker_latest_image}";
docker push "${docker_latest_image}";
fi
fi fi
- | - |
printf " printf "
...@@ -139,7 +142,7 @@ default: ...@@ -139,7 +142,7 @@ default:
BUILD_IMAGE=${DEVOPS_REGISTRY}usgs/amazoncorretto:11 BUILD_IMAGE=${DEVOPS_REGISTRY}usgs/amazoncorretto:11
FROM_IMAGE=${DEVOPS_REGISTRY}usgs/amazoncorretto:11 FROM_IMAGE=${DEVOPS_REGISTRY}usgs/amazoncorretto:11
IMAGE_TAG: ${ENVIRONMENT}-${CI_COMMIT_SHORT_SHA} IMAGE_TAG: ${ENVIRONMENT}-${CI_COMMIT_SHORT_SHA}
PUSH_DOCKER: false PUSH_DOCKER: 'false'
REGISTRY_IMAGE: ${CI_REGISTRY_IMAGE} REGISTRY_IMAGE: ${CI_REGISTRY_IMAGE}
TAG: build TAG: build
...@@ -180,7 +183,7 @@ CHS Registry: ...@@ -180,7 +183,7 @@ CHS Registry:
CI_COMMIT_BRANCH=${CI_COMMIT_BRANCH} CI_COMMIT_BRANCH=${CI_COMMIT_BRANCH}
CI_JOB_TOKEN=${CI_JOB_TOKEN} CI_JOB_TOKEN=${CI_JOB_TOKEN}
CI_PROJECT_URL=${CI_PROJECT_URL} CI_PROJECT_URL=${CI_PROJECT_URL}
PUSH_DOCKER: true PUSH_DOCKER: 'true'
UPSTREAM_PATH: ghsc/nshmp/nshmp-haz UPSTREAM_PATH: ghsc/nshmp/nshmp-haz
Container Registry: Container Registry:
......
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