Content-Length: 273151 | pFad | http://github.com/apache/airflow/commit/57e711e8496df05bcb071deebb506adfed87c4bb

32 Fix location of --push directive for prod images (#22142) · apache/airflow@57e711e · GitHub
Skip to content

Commit 57e711e

Browse files
authored
Fix location of --push directive for prod images (#22142)
Previous #22127 had `--push` added in a wrong place. It should only be added when cache is being built and it was added always, with resulted in authentication error as login has not been performed before the --push.
1 parent 8c3f479 commit 57e711e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/libraries/_build_images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,6 @@ function build_images::build_prod_images() {
601601
elif [[ "${DOCKER_CACHE}" == "pulled" ]]; then
602602
docker_prod_directive=(
603603
"--cache-from=${AIRFLOW_PROD_IMAGE}:cache"
604-
"--push"
605604
)
606605
else
607606
echo
@@ -616,6 +615,7 @@ function build_images::build_prod_images() {
616615
# Cache for prod image contains also build stage for buildx when mode=max specified!
617616
docker_prod_directive+=(
618617
"--cache-to=type=registry,ref=${AIRFLOW_PROD_IMAGE}:cache,mode=max"
618+
"--push"
619619
)
620620
if [[ ${PLATFORM} =~ .*,.* ]]; then
621621
echo

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apache/airflow/commit/57e711e8496df05bcb071deebb506adfed87c4bb

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy