Skip to content

Commit 2558032

Browse files
committed
Stop pushing if not logged in
1 parent 8ab8dc7 commit 2558032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ _build_image_buildkit() {
399399
cache_image="$(_get_full_stages_image_name)":cache
400400

401401
local cache_to
402-
if _must_push; then
402+
if _can_push; then
403403
cache_to="--cache-to mode=max,image-manifest=true,type=registry,ref=$cache_image"
404404
fi
405405

0 commit comments

Comments
 (0)