Skip to content

Commit

Permalink
output bucket name & sync
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass committed May 12, 2024
1 parent 4363a04 commit 8ff352e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
if: needs.detect-changes.outputs.deploy-iac == 'true'
environment: staging
runs-on: ubuntu-latest
outputs:
bucket: ${{ steps.output-bucket-name.outputs.bucket }}
env:
TF_VAR_region: ${{ vars.AWS_REGION }}
TF_VAR_environment: ${{ vars.ENV_SHORT_NAME }}
Expand Down Expand Up @@ -119,6 +121,12 @@ jobs:
terragrunt plan -out tfplan
terragrunt apply tfplan
- name: output-bucke-name
id: output-bucket-name
run: |
output=$(terragrunt output bucket)
echo "bucket=$output" >> $GITHUB_OUTPUT
deploy-frontend:
needs:
- detect-changes
Expand Down Expand Up @@ -154,6 +162,9 @@ jobs:
role-to-assume: ${{ secrets.IAM_ROLE }}
role-session-name: Appointment_GitHub_to_AWS_via_FederatedOIDC
aws-region: ${{ vars.AWS_REGION }}

- name: Deploy frontend to S3
run: aws s3 synv frontend ${{ needs.deploy-iac.outputs.bucket }}



Expand Down

0 comments on commit 8ff352e

Please sign in to comment.