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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy