Skip to content

Commit

Permalink
fix path issues in S3 upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass committed Jun 6, 2024
1 parent 197745e commit 758847d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,11 @@ jobs:

- name: Deploy frontend to S3
run: |
aws s3 sync frontend/dist "s3://$(terragrunt output bucket_name | tr -d '"')"
aws cloudfront create-invalidation --distribution-id $(terragrunt output cloudfront_id) --paths "/*"
cd tofu/environments/stage/services/frontend-infra
bucket=terragrunt output bucket_name | tr -d '"'
cloudfront=terragrunt output cloudfront_id
aws s3 sync ../../../../../frontend/dist "s3://$bucket"
aws cloudfront create-invalidation --distribution-id $cloudfront --paths "/*"
deploy-backend:
Expand Down

0 comments on commit 758847d

Please sign in to comment.