Skip to content

Commit

Permalink
Update build-and-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bored-engineer authored Mar 10, 2024
1 parent a6cbd44 commit adf7e61
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit adf7e61

Please sign in to comment.