Skip to content

Commit c9ab089

Browse files
committed
feat: go proxy for STIG SRIOV config daemon CI via group level variable
Signed-off-by: Michael Zeevi <mzeevi@nvidia.com>
1 parent 785c2a1 commit c9ab089

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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 \

0 commit comments

Comments
 (0)