Skip to content

Commit

Permalink
Tidy up write ui config file (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrod-lowe authored Aug 25, 2024
1 parent f87ce45 commit f8d4bd6
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/environment-main-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,7 @@ jobs:

- name: write UI config file
run: |
echo "${{ toJSON(steps.terraform.outputs) }}"
cat > ui/config/output-${{ vars.ENVIRONMENT }}.json <<EOF
{
"ui_bucket": {"value": "${{ steps.terraform.outputs.ui_bucket }}"},
"cdn_id": {"value": "${{ steps.terraform.outputs.cdn_id }}"},
"cognito_identity_pool_id": {"value": "${{ steps.terraform.outputs.cognito_identity_pool_id }}"},
"cognito_user_pool_id": {"value": "${{ steps.terraform.outputs.cognito_user_pool_id }}"},
"cognito_web_client_id": {"value": "${{ steps.terraform.outputs.cognito_web_client_id }}"},
"graphql_uri": {"value": "${{ steps.terraform.outputs.graphql_uri }}"},
"region": {"value": "${{ steps.terraform.outputs.region }}"},
"cognito_login_domain": {"value": "${{ steps.terraform.outputs.cognito_login_domain }}"},
"cdn_domain_name": {"value": "${{ steps.terraform.outputs.cdn_domain_name }}"}
}
EOF
echo "${{ toJSON(steps.terraform.outputs) }}" | jq 'with_entries(.value = {value: .value})' > ui/config/output-${{ vars.ENVIRONMENT }}.json}}
- name: Push UI
run: |
Expand Down

0 comments on commit f8d4bd6

Please sign in to comment.