From 3447f947ac9a062397f2d1c2f4d33a45fe064556 Mon Sep 17 00:00:00 2001 From: Peter Deme Date: Mon, 20 Jan 2025 12:13:55 +0100 Subject: [PATCH] Fix `packer build` argument list (#78) --- .github/workflows/build_scheduled.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_scheduled.yml b/.github/workflows/build_scheduled.yml index 5f52172..829b09a 100644 --- a/.github/workflows/build_scheduled.yml +++ b/.github/workflows/build_scheduled.yml @@ -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 }} @@ -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