Skip to content

Commit

Permalink
ER: Override JSON with input app version in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-sidhu-and committed Dec 6, 2023
1 parent ddcd9a5 commit cc5e8c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tf-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
WEB_SECRETS: ${{ toJSON(secrets) }}
WEB_VARS: ${{ toJSON(vars) }}
run: |
jq '${{ env.WEB_VARS }} += { "webapp_docker_image_tag": "${{ inputs.version }}" }'
echo "WEB_VARS=$( jq '${{ env.WEB_VARS }} += { "webapp_docker_image_tag": "${{ inputs.version }}" }' )" >> $GITHUB_ENV
printf '%s\n' "$WEB_SECRETS" > tmp-secrets.json
printf '%s\n' "$WEB_VARS" > tmp-vars.json
jq 'with_entries(.key |= ascii_downcase)' tmp-secrets.json > web-secrets.auto.tfvars.json
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
WEB_SECRETS: ${{ toJSON(secrets) }}
WEB_VARS: ${{ toJSON(vars) }}
run: |
jq '${{ env.WEB_VARS }} += { "webapp_docker_image_tag": "${{ inputs.version }}" }'
echo "WEB_VARS=$( jq '${{ env.WEB_VARS }} += { "webapp_docker_image_tag": "${{ inputs.version }}" }' )" >> $GITHUB_ENV
printf '%s\n' "$WEB_SECRETS" > tmp-secrets.json
printf '%s\n' "$WEB_VARS" > tmp-vars.json
jq 'with_entries(.key |= ascii_downcase)' tmp-secrets.json > web-secrets.auto.tfvars.json
Expand Down

0 comments on commit cc5e8c2

Please sign in to comment.