Skip to content

Commit acc909e

Browse files
authored
Update build-ami.yml
1 parent a340770 commit acc909e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-ami.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363

6464
- name: Run Packer build and print AMI ID
6565
run: |
66-
packer build -machine-readable -var aws_access_key=${{ secrets.AWS_ACCESS_KEY_ID }} -var aws_secret_key=${{ secrets.AWS_SECRET_ACCESS_KEY }} ansible-packer/packer/PosgresawsTemplate.pkr.hcl | tee packer_output.txt
66+
packer build -machine-readable -var aws_access_key=${{ secrets.AWS_ACCESS_KEY_ID }} -var aws_secret_key=${{ secrets.AWS_SECRET_ACCESS_KEY }} /home/runner/work/Team1-react-rust-postgres/Team1-react-rust-postgres/packer_ansible/packer/PosgresawsTemplate.pkr.hcl | tee packer_output.txt
6767
ami_id=$(awk -F, '$0 ~/artifact,0,id/ {print $6}' packer_output.txt)
6868
echo "AMI_ID=$ami_id" >> $GITHUB_ENV
6969
echo "AMI_ID=$ami_id" # Print AMI ID to console

0 commit comments

Comments
 (0)