Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
upgrade to checkout v4, and migrate to use hashicorp/setup-packer
  • Loading branch information
lesserwhirls committed Dec 16, 2024
1 parent 63b6e0f commit 4566a92
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/packer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
# validate templates
- name: Validate Template
uses: hashicorp/packer-github-actions@master
uses: actions/checkout@v4
- name: Setup packer
uses: hashicorp/setup-packer@main
id: setup
with:
command: validate
working_directory: packer
target: thredds-test-env.pkr.hcl
version: latest
- name: Run packer initi
id: init
run: "cd packer && packer init thredds-test-env.pkr.hcl"
- name: Validate Template
id: validate
run: "cd packer && packer validate thredds-test-env.pkr.hcl"

0 comments on commit 4566a92

Please sign in to comment.