From d33ade0682c7fd52cd975176554c11dee5598224 Mon Sep 17 00:00:00 2001 From: Magnus Henoch Date: Tue, 20 Oct 2026 10:31:43 +0100 Subject: [PATCH] Fix buildx install deprecation warning This one: Unexpected input(s) 'install', valid inputs are ['version', 'driver', 'driver-opts', 'buildkitd-flags', 'buildkitd-config', 'buildkitd-config-inline', 'use', 'name', 'endpoint', 'platforms', 'append', 'keep-state', 'cache-binary', 'cleanup'] The 'install' parameter to docker/setup-buildx-action is deprecated in favour of calling "docker buildx build" instead of "docker build". --- actions/build-push-ecr/action.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/actions/build-push-ecr/action.yml b/actions/build-push-ecr/action.yml index 2ff8b52..0a7dae5 100644 --- a/actions/build-push-ecr/action.yml +++ b/actions/build-push-ecr/action.yml @@ -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 @@ -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 @@ -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