From 98fd67a28822ab901dfa61389fd5c88695cddca6 Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Wed, 11 Sep 2024 11:14:11 +0200 Subject: [PATCH] Use docker hub token for pulling images in CI --- ci/common-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/common-ci.yml b/ci/common-ci.yml index 3a9e6f5fa5..5dbf2fcec5 100644 --- a/ci/common-ci.yml +++ b/ci/common-ci.yml @@ -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'` @@ -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