Skip to content

Commit

Permalink
feat: add invalidation to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrwatson committed Aug 29, 2024
1 parent 155fb10 commit 2e0363b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ on:

jobs:

check-cdn:
uses: ./.github/workflows/check-invalidations.yml
invoke-and-check-cdn:
uses: ./.github/workflows/invoke-and-check-invalidations.yml
with:
environment: shared
secrets: inherit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Check CDN State
name: Instigate & Check CDN State

run-name: Checking CDN State for ${{ inputs.environment }}
run-name: Instigate & Check CDN State for ${{ inputs.environment }}

on:
workflow_call:
Expand All @@ -12,7 +12,7 @@ on:

jobs:
check-cdn:
name: Check CDN Invalidations
name: Instigate & Check CDN Invalidation
environment: ${{ inputs.environment }}
runs-on: ubuntu-latest
steps:
Expand All @@ -23,6 +23,12 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: us-east-1

- name: Invalidate web cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DIST_ID }} \
--paths "/cyclone/stable/* /sdf/stable/* /rebaser/stable/* /pinga/stable/* /veritech/stable/*" \
--query 'Invalidation.Id' --output text
- name: Checkout code
uses: actions/checkout@v4

Expand Down

0 comments on commit 2e0363b

Please sign in to comment.