Skip to content

Commit

Permalink
Fix packer build argument list (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdeme authored Jan 20, 2025
1 parent 4676277 commit 3447f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

- name: Build the AWS AMI using Packer (${{ matrix.arch }})
# We only run the cleanup postprocessor for one of them, to avoid race conditions
run: packer build aws.pkr.hcl ${{ matrix.arch == 'x86_64' && '--except=amazon-ami-management' || '' }}
run: packer build ${{ matrix.arch == 'x86_64' && '--except=amazon-ami-management' || '' }} aws.pkr.hcl
env:
PKR_VAR_encrypt_boot: false
PKR_VAR_ami_name_prefix: spacelift-${{ needs.timestamp.outputs.timestamp }}
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:

- name: Build the GovCloud AWS AMI using Packer (${{ matrix.arch }})
# We only run the cleanup postprocessor for one of them, to avoid race conditions
run: packer build aws.pkr.hcl ${{ matrix.arch == 'x86_64' && '--except=amazon-ami-management' || '' }}
run: packer build ${{ matrix.arch == 'x86_64' && '--except=amazon-ami-management' || '' }} aws.pkr.hcl
env:
PKR_VAR_source_ami_owners: '["045324592363"]'
PKR_VAR_region: us-gov-east-1
Expand Down

0 comments on commit 3447f94

Please sign in to comment.