Skip to content

Commit

Permalink
Use docker hub token for pulling images in CI (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg authored Sep 11, 2024
1 parent 164644c commit a493957
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/ci-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ stages:
stage: 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 @@ -55,6 +56,7 @@ stages:
stage: build
timeout: 1 hours
before_script:
- 'echo $DOCKERHUB_TOKEN | podman login docker.io -u $DOCKERHUB_USERNAME --password-stdin'
- 'echo "INFO: Using NUM_CORES_BUILD_DLAF_FORTRAN=$NUM_CORES_BUILD_DLAF_FORTRAN"'
after_script:
- podman run -v $PWD/ci/ctest_to_gitlab.sh:/ctest_to_gitlab.sh $DEPLOY_IMAGE /ctest_to_gitlab.sh "$DEPLOY_IMAGE" "$THREADS_PER_NODE" "$SLURM_CONSTRAINT" > pipeline.yml
Expand Down

0 comments on commit a493957

Please sign in to comment.