Skip to content

Commit

Permalink
Add packer validate github check workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Jul 10, 2024
1 parent 42f176f commit dec1173
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/packer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: packer validate

on:
pull_request:
paths:
- packer/**

env:
PACKER_VERSION: "1.8.7"

jobs:
packer-validate:
runs-on: ubuntu-latest
name: Run Packer
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup `packer`
uses: hashicorp/setup-packer@main
id: setup
with:
version: ${{ env.PACKER_VERSION }}

- name: Run `packer validate`
id: validate
run: |
cd packer/
for template in `find . -name "*.json"`; do
packer validate $template
done

0 comments on commit dec1173

Please sign in to comment.