Skip to content

Commit

Permalink
Update buildami.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavk1511 committed Dec 2, 2023
1 parent f3512eb commit 3acaf92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/buildami.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ jobs:
sudo apt-get install jq
ASG_NAME=webAppAutoScalingGroup
LAUNCH_CONFIG=webAppLaunchTemplate
IMAGE_ID=$(jq -n --arg img "${{ needs.build.outputs.ami_id }}" '{"ImageId": $img}')
IMAGE=$(jq -r '.builds[-1].artifact_id' manifest.json | cut -d':' -f2)
IMAGE_ID=$(jq -n \
--arg img "$IMAGE" \
'{"ImageId": $img}')
aws ec2 create-launch-template-version \
--launch-template-name "$LAUNCH_CONFIG" \
--version-description updateAMI --source-version 1 \
Expand Down

0 comments on commit 3acaf92

Please sign in to comment.