Skip to content
Snippets Groups Projects
Commit 2a104c52 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: limit --no-cache retries to 1

parent 61e324ec
No related branches found
No related tags found
1 merge request!983fix: limit --no-cache retries to 1
Pipeline #101175 skipped
This commit is part of merge request !983. Comments created here will be created in the context of that merge request.
......@@ -269,7 +269,8 @@ base:
needs:
- version
script:
- while !
- attempts=0
- while test ${attempts} -lt 2 && !
docker buildx build --push ${BUILD_OPTIONS}
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
${EXPORT_TAG:+
......@@ -289,7 +290,8 @@ base:
BUILD_OPTIONS="--no-cache ${BUILD_OPTIONS}" ;
else
exit 1 ;
fi
fi ;
let attempts=$attempts+1 ;
done
......@@ -353,7 +355,8 @@ eic:
source eic-spack.sh ;
export SPACK_VERSION ;
cat mirrors.yaml.in | envsubst > mirrors.yaml
- while !
- attempts=0
- while test ${attempts} -lt 2 && !
docker buildx build --push ${BUILD_OPTIONS}
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}${ENV}:${INTERNAL_TAG}-${BUILD_TYPE}
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE/eic/jug}${ENV}:${INTERNAL_TAG}-${BUILD_TYPE}
......@@ -444,7 +447,8 @@ eic:
BUILD_OPTIONS="--no-cache ${BUILD_OPTIONS}" ;
else
exit 1 ;
fi
fi ;
let attempts=$attempts+1 ;
done
.singularity:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment