From adf7e6181cfc4f9718f6a16f7de7692e8d5a3324 Mon Sep 17 00:00:00 2001 From: Luke Young Date: Sun, 10 Mar 2024 14:49:28 -0700 Subject: [PATCH] Update build-and-push.yml --- .github/workflows/build-and-push.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 3e8a179..1ef46f3 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -24,10 +24,16 @@ jobs: with: registry-type: public - - name: Build and Push image to Amazon ECR - run: | - docker buildx build \ - --push \ - --platform linux/arm64,linux/amd64 \ - --tag public.ecr.aws/t9f5l7n9/trivy-lambda:latest \ - . + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: public.ecr.aws/t9f5l7n9/trivy-lambda:latest