From b2910ad3d18b908c7f060afc094a4ae1974b72f6 Mon Sep 17 00:00:00 2001 From: Brandon Clayton <bclayton@usgs.gov> Date: Wed, 20 Apr 2022 16:23:41 -0600 Subject: [PATCH] add build args --- .gitlab-ci.yml | 4 ++++ Dockerfile | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c76c4088..949b1dc95 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 367f83e95..7a5ba31d4 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 -- GitLab