Skip to content

Commit 572d3c1

Browse files
authored
Fix build-ami workflow (#496)
* Improve build-ami trigger * Add `packer init`
1 parent 589a3bf commit 572d3c1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-ami.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: build-ami
22
on:
33
push:
4-
tags: ['ami*']
4+
branches: [master]
5+
paths: [environment/**]
56
jobs:
67
build-ami:
78
runs-on: ubuntu-latest
89
steps:
910
- uses: actions/checkout@v2
10-
- run: packer build environment
11+
- run: |
12+
packer init environment
13+
packer build environment
1114
env:
1215
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
1316
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

0 commit comments

Comments
 (0)