Skip to content

Commit

Permalink
Install jq.
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo committed Nov 29, 2023
1 parent f88b3bc commit f1b2445
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
AWS_EC2_SSH_KEY: ${{ secrets.AWS_EC2_SSH_KEY }}

steps:
- name: Install jq
run: sudo apt-get install -y jq

- name: Set up AWS CLI
run: |
mkdir -p ~/.aws
Expand Down Expand Up @@ -51,7 +54,9 @@ jobs:
- name: Extract the instance IDs using jq (JSON processor)
run: |
set -x
IFS=$'\n' read -d '' -r -a INSTANCES <<< "$(echo "$INSTANCE_IDS" | jq -r '.[]')"
set +x
- name: Iterate over the array
run: |
Expand Down

0 comments on commit f1b2445

Please sign in to comment.