Skip to content

Commit

Permalink
Use docker hub token for pulling images in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Sep 11, 2024
1 parent 24f941b commit 98fd67a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/common-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ stages:
stage: build_deps
timeout: 6 hours
before_script:
- echo $DOCKERHUB_TOKEN | podman login docker.io -u $DOCKERHUB_USERNAME --password-stdin
- TAG_IMAGE=`echo ${BASE_IMAGE##*/} | sed 's/[:]//g'`
- TAG_APTGET=`echo ${EXTRA_APTGET} | sha256sum - | head -c 6`
- TAG_COMPILER=`echo ${COMPILER}_CXX${CXXSTD} | sed 's/[@]//g'`
Expand Down Expand Up @@ -65,6 +66,7 @@ stages:
stage: build
timeout: 2 hours
before_script:
- 'echo $DOCKERHUB_TOKEN | podman login docker.io -u $DOCKERHUB_USERNAME --password-stdin'
- 'echo "INFO: Using NUM_CORES_BUILD_DLAF=$NUM_CORES_BUILD_DLAF"'
after_script:
- podman run -v $PWD/ci/ctest_to_gitlab.sh:/ctest_to_gitlab.sh $DEPLOY_IMAGE /ctest_to_gitlab.sh "$DEPLOY_IMAGE" "$USE_CODECOV" "$THREADS_PER_NODE" "$SLURM_CONSTRAINT" > pipeline.yml
Expand Down

0 comments on commit 98fd67a

Please sign in to comment.