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

fix(ci): better attempts handling

parent 2a104c52
No related branches found
No related tags found
1 merge request!983fix: limit --no-cache retries to 1
Pipeline #101200 failed
......@@ -270,7 +270,7 @@ base:
- version
script:
- attempts=0
- while test ${attempts} -lt 2 && !
- while !
docker buildx build --push ${BUILD_OPTIONS}
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
${EXPORT_TAG:+
......@@ -291,6 +291,9 @@ base:
else
exit 1 ;
fi ;
if test ${attempts} -ge 1 ; then
exit 1 ;
fi ;
let attempts=$attempts+1 ;
done
......@@ -356,7 +359,7 @@ eic:
export SPACK_VERSION ;
cat mirrors.yaml.in | envsubst > mirrors.yaml
- attempts=0
- while test ${attempts} -lt 2 && !
- while !
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}
......@@ -448,6 +451,9 @@ eic:
else
exit 1 ;
fi ;
if test ${attempts} -ge 1 ; then
exit 1 ;
fi ;
let attempts=$attempts+1 ;
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment