Skip to content

Commit

Permalink
Create 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 40522db commit a68ae45
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build & Push
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::396667938998:role/trivy-lambda
aws-region: us-west-2

- name: Login to Amazon ECR
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public

- name: Build and Push image to Amazon ECR
run: |
docker build --push -t public.ecr.aws/t9f5l7n9/trivy-lambda:latest

0 comments on commit a68ae45

Please sign in to comment.