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

fix: remove --no-cache again

parent aed162c7
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ variables: ...@@ -31,7 +31,7 @@ variables:
NIGHTLY_TAG: "nightly" NIGHTLY_TAG: "nightly"
## Additional options for docker build (e.g. --no-cache) ## Additional options for docker build (e.g. --no-cache)
BUILD_OPTIONS: "--no-cache" BUILD_OPTIONS: ""
## Version to be set by external trigger ## Version to be set by external trigger
VERSION: "" VERSION: ""
...@@ -254,7 +254,8 @@ base: ...@@ -254,7 +254,8 @@ base:
needs: needs:
- version - version
script: script:
- docker buildx build --push ${BUILD_OPTIONS} - while !
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:+
${CI_PUSH:+--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${EXPORT_TAG}} ${CI_PUSH:+--tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${EXPORT_TAG}}
...@@ -268,6 +269,13 @@ base: ...@@ -268,6 +269,13 @@ base:
--provenance false --provenance false
containers/debian containers/debian
2>&1 | tee build.log 2>&1 | tee build.log
; do
if grep "unknown blob" build.log ; then
BUILD_OPTIONS="--no-cache ${BUILD_OPTIONS}" ;
else
exit 1 ;
fi
done
jug_dev: jug_dev:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment