Skip to content

Commit

Permalink
Make cache work in AWS ECR (image-manifest=true)
Browse files Browse the repository at this point in the history
AWS ECR needs image-manifest=true for cache images to be pushed.
See aws/containers-roadmap#876 for more info.
  • Loading branch information
whoan committed Oct 22, 2023
1 parent b10312e commit 1188b29
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 @@ -393,7 +393,7 @@ _build_image_buildkit() {
docker buildx build \
--load \
--cache-from type=registry,ref="$cache_image" \
--cache-to mode=max,type=registry,ref="$cache_image" \
--cache-to mode=max,image-manifest=true,type=registry,ref="$cache_image" \
--tag "$DUMMY_IMAGE_NAME" \
--file "${INPUT_CONTEXT}"/"${INPUT_DOCKERFILE}" \
${INPUT_BUILD_EXTRA_ARGS} \
Expand Down

0 comments on commit 1188b29

Please sign in to comment.