Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honor push_image_and_stages input #143

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,11 @@ _build_image_buildkit() {
local cache_image
cache_image="$(_get_full_stages_image_name)":latest

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

_parse_extra_args

set -x
Expand All @@ -393,7 +398,7 @@ _build_image_buildkit() {
docker buildx build \
--load \
--cache-from type=registry,ref="$cache_image" \
--cache-to mode=max,image-manifest=true,type=registry,ref="$cache_image" \
$cache_to \
--tag "$DUMMY_IMAGE_NAME" \
--file "${INPUT_CONTEXT}"/"${INPUT_DOCKERFILE}" \
${INPUT_BUILD_EXTRA_ARGS} \
Expand Down
Loading