Skip to content

Commit 03b72c8

Browse files
committed
chore: reference envvar from context
1 parent d57f235 commit 03b72c8

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.circleci/config.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
name: Export environment variables
4444
- run:
4545
command: |
46-
docker login --username ${DOCKERHUB_USER} --password ${DOCKERHUB_PASSWORD}
46+
docker login --username ${DOCKERHUB_USER} --password ${DOCKERHUB_PASS}
4747
./scripts/docker/build-image.sh ${IMAGE_NAME_CANDIDATE}
4848
./scripts/docker/build-image-ubi9.sh ${IMAGE_NAME_CANDIDATE_UBI9}
4949
name: Build image
@@ -176,7 +176,7 @@ jobs:
176176
token-variable: SNYK_TOKEN
177177
- run:
178178
command: |
179-
docker login --username ${DOCKERHUB_USER} --password ${DOCKERHUB_PASSWORD} &&
179+
docker login --username ${DOCKERHUB_USER} --password ${DOCKERHUB_PASS} &&
180180
docker pull ${IMAGE_NAME_APPROVED} &&
181181
docker tag ${IMAGE_NAME_APPROVED} ${IMAGE_NAME_PUBLISHED} &&
182182
docker push ${IMAGE_NAME_PUBLISHED} &&
@@ -228,7 +228,7 @@ jobs:
228228
- run:
229229
command: |
230230
npm ci &&
231-
docker login --username ${DOCKERHUB_USER} --password ${DOCKERHUB_PASSWORD} &&
231+
docker login --username ${DOCKERHUB_USER} --password ${DOCKERHUB_PASS} &&
232232
unset CIRCLE_PULL_REQUEST &&
233233
unset CI_PULL_REQUEST &&
234234
unset CI_PULL_REQUESTS &&
@@ -299,6 +299,7 @@ workflows:
299299
context:
300300
- team-container-integration
301301
- analysis_test-enrichment
302+
- team-container-integration-docker-hub
302303
requires:
303304
- Security Scans
304305
filters:
@@ -321,6 +322,7 @@ workflows:
321322
context:
322323
- analysis_test-enrichment
323324
- go-private-modules
325+
- team-container-integration-docker-hub
324326
filters:
325327
branches:
326328
only:
@@ -337,7 +339,9 @@ workflows:
337339
only:
338340
- staging
339341
- tag_and_push:
340-
context: team-container-integration
342+
context:
343+
- team-container-integration
344+
- team-container-integration-docker-hub
341345
filters:
342346
branches:
343347
only:
@@ -383,6 +387,7 @@ workflows:
383387
context:
384388
- analysis_test-enrichment
385389
- go-private-modules
390+
- team-container-integration-docker-hub
386391
requires:
387392
- Scan repository for secrets
388393
- Security Scans

scripts/circleci-jobs/setup-integration-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import subprocess
55

66
dockerhub_user = os.getenv('DOCKERHUB_USER')
7-
dockerhub_password = os.getenv('DOCKERHUB_PASSWORD')
7+
dockerhub_password = os.getenv('DOCKERHUB_PASS')
88
image_tag_suffix = os.getenv('IMAGE_TAG_UBI_SUFFIX', '')
99

1010
subprocess.getoutput("docker login --username " + dockerhub_user + " --password " + dockerhub_password)

0 commit comments

Comments
 (0)