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
...@@ -270,7 +270,7 @@ base: ...@@ -270,7 +270,7 @@ base:
- version - version
script: script:
- attempts=0 - attempts=0
- while test ${attempts} -lt 2 && ! - while !
docker buildx build --push ${BUILD_OPTIONS} docker buildx build --push ${BUILD_OPTIONS}
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG} --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
${EXPORT_TAG:+ ${EXPORT_TAG:+
...@@ -291,6 +291,9 @@ base: ...@@ -291,6 +291,9 @@ base:
else else
exit 1 ; exit 1 ;
fi ; fi ;
if test ${attempts} -ge 1 ; then
exit 1 ;
fi ;
let attempts=$attempts+1 ; let attempts=$attempts+1 ;
done done
...@@ -356,7 +359,7 @@ eic: ...@@ -356,7 +359,7 @@ eic:
export SPACK_VERSION ; export SPACK_VERSION ;
cat mirrors.yaml.in | envsubst > mirrors.yaml cat mirrors.yaml.in | envsubst > mirrors.yaml
- attempts=0 - attempts=0
- while test ${attempts} -lt 2 && ! - while !
docker buildx build --push ${BUILD_OPTIONS} 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}${ENV}:${INTERNAL_TAG}-${BUILD_TYPE}
--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE/eic/jug}${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: ...@@ -448,6 +451,9 @@ eic:
else else
exit 1 ; exit 1 ;
fi ; fi ;
if test ${attempts} -ge 1 ; then
exit 1 ;
fi ;
let attempts=$attempts+1 ; let attempts=$attempts+1 ;
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment