Skip to content

Commit

Permalink
fix: CD pipeline failure hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sydrawat01 committed Jan 12, 2024
1 parent ea0a8f8 commit ef83b32
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/packer-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Packer variables
run: |
cd aws/packer && touch ami.pkrvars.hcl
cd aws/packer/ && touch ami.pkrvars.hcl
echo ami_prefix=\"${{ vars.AMI_PREFIX }}\" >> ami.pkrvars.hcl
echo OS=\"${{ vars.OS }}\" >> ami.pkrvars.hcl
echo ubuntu_version=\"${{ vars.VERSION }}\" >> ami.pkrvars.hcl
Expand All @@ -75,19 +75,19 @@ jobs:
id: setup
with:
version: "latest"

- name: Run `packer fmt`
id: fmt
run: "packer fmt ."
- name: Run `packer init`
id: init
run: "packer init ami.pkr.hcl"
run: "packer init ./aws/packer/ami.pkr.hcl"
- name: Run `packer validate`
id: validate
run: "packer validate -evaluate-datasources --var-file=ami.pkrvars.hcl ami.pkr.hcl"
run: |
cd aws/packer/ &&
packer validate -evaluate-datasources --var-file=ami.pkrvars.hcl ami.pkr.hcl
- name: Run `packer build`
id: build
run: "packer build --var-file=ami.pkrvars.hcl ami.pkr.hcl"
run: |
cd aws/packer/ &&
packer build --var-file=ami.pkrvars.hcl ami.pkr.hcl
# - name: Packer init, format validate and build custom AMI
# run: |
Expand Down

0 comments on commit ef83b32

Please sign in to comment.