Skip to content
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
5 changes: 2 additions & 3 deletions actions/build-push-ecr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ runs:
uses: docker/setup-buildx-action@v4.4.1
with:
platforms: ${{ inputs.platforms }}
install: true # enable buildx by default
-
name: Build, tag, and push image to Amazon ECR
id: build-push
Expand All @@ -88,7 +87,7 @@ runs:
set -x
export IFS=",";
# AWS lambdas do not support a single image with multiple platforms, that
# is why image for each platform has to be build, tagged and pushed
# is why image for each platform has to be built, tagged and pushed
# separately.
for p in $PLATFORMS; do
if [ $p == "linux/amd64" ]; then
Expand All @@ -99,5 +98,5 @@ runs:
# there is a nuance introduced by buildx >= 0.10 which builds
# multiplatform index even if only one platform is specified. Which
# doesn't work with aws lambda, hence `--provenance=false`
docker build --push --provenance=false --platform=$p -t "${ECR_REPO}:${TAG}${EXTRA_TAG}" ${{ inputs.docker-build-args }}
docker buildx build --push --provenance=false --platform=$p -t "${ECR_REPO}:${TAG}${EXTRA_TAG}" ${{ inputs.docker-build-args }}
done
Loading