Skip to content

Commit

Permalink
Stop pushing if not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
whoan committed Oct 28, 2023
1 parent 8ab8dc7 commit 2558032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ _build_image_buildkit() {
cache_image="$(_get_full_stages_image_name)":cache

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

Expand Down

0 comments on commit 2558032

Please sign in to comment.