diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c76c4088c555b97382dcb780fb1e4ef1d422ef6..949b1dc9524e98a0a2a3226c49a4cac7a2037960 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -166,7 +166,9 @@ CHS Registry: DOCKER_BUILD_ARGS: | BUILD_IMAGE=${DEVOPS_REGISTRY}usgs/amazoncorretto:11 FROM_IMAGE=${DEVOPS_REGISTRY}usgs/amazoncorretto:11 + CI_COMMIT_BRANCH=${CI_COMMIT_BRANCH} CI_JOB_TOKEN=${CI_JOB_TOKEN} + CI_PROJECT_URL=${CI_PROJECT_URL} UPSTREAM_PATH: ghsc/nshmp/nshmp-haz Container Registry: @@ -190,7 +192,9 @@ Container Registry: DOCKER_BUILD_ARGS: | BUILD_IMAGE=${DEVOPS_REGISTRY}usgs/amazoncorretto:11 FROM_IMAGE=${DEVOPS_REGISTRY}usgs/amazoncorretto:11 + CI_COMMIT_BRANCH=${CI_COMMIT_BRANCH} CI_JOB_TOKEN=${CI_JOB_TOKEN} + CI_PROJECT_URL=${CI_PROJECT_URL} UPSTREAM_PATH: ghsc/nshmp/nshmp-haz Build Project: diff --git a/Dockerfile b/Dockerfile index 367f83e95d3a793a30959e3a748031b03b20d332..7a5ba31d4ec3d4dcc2968e770dd696257b5d88a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,6 +39,8 @@ FROM ${BUILD_IMAGE} as builder # Remove once nshmp-lib is public ARG GITLAB_TOKEN=null ARG CI_JOB_TOKEN=null +ARG CI_PROJECT_URL=null +ARG CI_COMMIT_BRANCH=null WORKDIR /app