Skip to content

Commit

Permalink
packer: use matrix to speed up builds
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Jun 25, 2024
1 parent 5c9bd8c commit 7426963
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/packer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
packer:
name: Update macOS Orka Image
runs-on: ubuntu-latest
strategy:
matrix:
os: [sonoma-arm64, sonoma-intel]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

Expand All @@ -39,7 +42,7 @@ jobs:
working-directory: ansible/packer

- name: Run Packer
run: packer build orka.pkr.hcl
run: packer build --only=macstadium-orka.${{ matrix.os }} orka.pkr.hcl
working-directory: ansible/packer
env:
ORKA_TOKEN: ${{ secrets.ORKA_TOKEN }}

0 comments on commit 7426963

Please sign in to comment.