Skip to content

Commit

Permalink
fix references to jobs (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass authored Jun 11, 2024
1 parent 247d551 commit 50951d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
echo cloudfront_id=$output >> $GITHUB_OUTPUT
deploy-prod-frontend:
needs: deploy-iac
needs: deploy-prod-iac
if: startsWith(github.ref_name, 'r-') # the prefix we have added to the tag
environment: production
runs-on: ubuntu-latest
Expand All @@ -144,13 +144,13 @@ jobs:

# will be re-enabled once release workflow is tested
# - name: Deploy frontend to S3
# run: aws s3 sync ./frontend/frontend/dist "s3://${{ needs.deploy-iac.outputs.bucket }}"
# 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-iac.outputs.cloudfront_id }} --paths "/*"
run: aws cloudfront create-invalidation --distribution-id ${{ needs.deploy-prod-iac.outputs.cloudfront_id }} --paths "/*"

deploy-prod-backend:
needs: deploy-iac
needs: deploy-prod-iac
if: startsWith(github.ref_name, 'r-') # the prefix we have added to the tag
environment: production
runs-on: ubuntu-latest
Expand Down

0 comments on commit 50951d5

Please sign in to comment.