diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index f1ddcd16e..38826f90d 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -152,6 +152,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 sync frontend/dist s3://tb-apmt-prod-frontend deploy-backend: needs: diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index f9480c85d..e581817c4 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -121,13 +121,6 @@ jobs: terragrunt plan -out tfplan terragrunt apply tfplan - - name: output-bucket-name - id: output-bucket-name - working-directory: ./tofu/environments/stage/services/frontend-infra - run: | - output=$(terragrunt output bucket) - echo bucket=$output >> $GITHUB_OUTPUT - deploy-frontend: needs: - detect-changes @@ -165,7 +158,7 @@ jobs: aws-region: ${{ vars.AWS_REGION }} - name: Deploy frontend to S3 - run: aws s3 sync frontend s3://tb-apmt-stg-frontend + run: aws s3 sync frontend/dist s3://tb-apmt-stg-frontend