File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ stages:
2727 - pulse-scan-stig
2828 - deploy
2929
30- variables : # additional variables defined at the gitlab group scope
30+ variables : # additional variables are defined at the gitlab group scope
3131 DOCKERFILE : Dockerfile.sriov-network-config-daemon-stig
3232 DOCKER_REGISTRY : nvcr.io/nvstaging/mellanox
3333 DOCKER_IMAGE_NAME : sriov-network-operator-config-daemon-stig-fips
@@ -45,16 +45,17 @@ build-image:
4545 - if : ' $CI_COMMIT_BRANCH =~ /^network-operator-.*$/'
4646 image : docker:24
4747 variables :
48- DOCKER_TLS_CERTDIR : " /certs"
48+ DOCKER_TLS_CERTDIR : /certs
4949 before_script :
50- # validate variables and gitlab group variables
50+ # validate variables (including gitlab group scoped variables)
5151 - |
5252 for var in \
5353 ARTIFACTORY_USERNAME \
5454 ARTIFACTORY_TOKEN \
5555 ARTIFACTORY_REGISTRY \
5656 NVCR_USERNAME \
5757 NVCR_TOKEN \
58+ GOPROXY \
5859 GITLAB_USERNAME \
5960 GITLAB_TOKEN \
6061 GITHUB_USERNAME \
@@ -113,6 +114,7 @@ build-image:
113114 # build
114115 - |
115116 docker build \
117+ --build-arg GOPROXY=$GOPROXY \
116118 --build-arg UBUNTU_STIG_BASE_IMAGE=$UBUNTU_STIG_BASE_IMAGE \
117119 --secret id=stig_script,src=/tmp/stig-scripts/stig-fixer.sh \
118120 --file $DOCKERFILE \
You can’t perform that action at this time.
0 commit comments