Skip to content

Commit 47d04a3

Browse files
committed
add workflow to build AMI
1 parent 670b8a7 commit 47d04a3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build AMI
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build-ami:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12+
13+
- name: AWS OIDC Auth
14+
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
15+
with:
16+
aws-region: us-east-2
17+
role-to-assume: ${{ secrets.AWS_IAM_ROLE_ARN }}
18+
19+
- name: Build AMI
20+
working-directory: ami
21+
run: |
22+
packer init .
23+
packer validate .
24+
packer build .

0 commit comments

Comments
 (0)