Skip to content

Commit

Permalink
Use dockerhub credentials for pulling base image in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Sep 11, 2024
1 parent b7d8f22 commit a0af1b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab/includes/common_spack_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ variables:
.base_spack_image:
timeout: 1 hours
before_script:
- echo $DOCKERHUB_TOKEN | podman login docker.io -u $DOCKERHUB_USERNAME --password-stdin
- export DOCKERFILE_SHA=`sha256sum $DOCKERFILE | head -c 16`
- export CONFIG_TAG=`echo $DOCKERFILE_SHA-$BASE_IMAGE-$SPACK_COMMIT-$SPACK_REPO | sha256sum - | head -c 16`
- export PERSIST_IMAGE_NAME=$CSCS_REGISTRY_PATH/$ARCH/pika-spack-base:$CONFIG_TAG
Expand Down

0 comments on commit a0af1b3

Please sign in to comment.