Skip to content

Commit

Permalink
Enable the prod deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Jul 30, 2024
1 parent 41b0bea commit ba5a457
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,39 +72,39 @@ jobs:
terragrunt init -upgrade
terragrunt validate
terragrunt plan -out tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested
terragrunt apply tfplan
- name: backend-infra
working-directory: ./tofu/environments/prod/services/backend-infra
run: |
terragrunt init -upgrade
terragrunt validate
terragrunt plan -out tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested
terragrunt apply tfplan
- name: cache
working-directory: ./tofu/environments/prod/data-store/cache
run: |
terragrunt init -upgrade
terragrunt validate
terragrunt plan -out tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested
terragrunt apply tfplan
- name: database
working-directory: ./tofu/environments/prod/data-store/database
run: |
terragrunt init -upgrade
terragrunt validate
terragrunt plan -out tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested
terragrunt apply tfplan
- name: frontend-infra
working-directory: ./tofu/environments/prod/services/frontend-infra
run: |
terragrunt init -upgrade
terragrunt validate
terragrunt plan -out tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested
terragrunt apply tfplan
- name: output-bucket-name
id: output-bucket-name
Expand Down Expand Up @@ -145,9 +145,8 @@ jobs:
role-session-name: Appointment_GitHub_to_AWS_via_FederatedOIDC
aws-region: ${{ vars.AWS_REGION }}

# will be re-enabled once release workflow is tested
# - name: Deploy frontend to S3
# run: aws s3 sync ./frontend/frontend/dist "s3://${{ needs.deploy-prod-iac.outputs.bucket }}"
- name: Deploy frontend to S3
run: aws s3 sync ./frontend/frontend/dist "s3://${{ needs.deploy-prod-iac.outputs.bucket }}"

- name: Invalidate Cloudfront cache
run: aws cloudfront create-invalidation --distribution-id ${{ needs.deploy-prod-iac.outputs.cloudfront_id }} --paths "/*"
Expand Down Expand Up @@ -233,6 +232,4 @@ jobs:
terragrunt init -upgrade
terragrunt validate
terragrunt plan -var "image=${{ steps.get_ecr_tag.outputs.ecr_tag }}" -out tfplan
cat tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested

terragrunt apply tfplan

0 comments on commit ba5a457

Please sign in to comment.