-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker_ci.yml
38 lines (29 loc) · 914 Bytes
/
packer_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
name: Packer
on:
pull_request:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
PRODUCT_VERSION: "latest"
jobs:
packer-lint:
runs-on: ubuntu-20.04
name: packer-lint
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup `packer`
uses: hashicorp/setup-packer@main
id: setup
with:
version: ${{ env.PRODUCT_VERSION }}
- name: Run `packer init`
id: init
run: packer init packer/
- name: Run `packer fmt`
id: fmt
run: packer fmt -check packer/
- name: Run `packer validate`
id: validate
run: packer validate -syntax-only packer/