Skip to content

Commit

Permalink
Add cache purging to staging deploy (#6364)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf authored Oct 15, 2024
1 parent 2c203a1 commit 6449eb6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,20 @@ jobs:
run: |
sed 's/__IMAGE_TAG__/${{ github.sha }}/g' kubernetes/deployment-staging.tmpl | kubectl apply -f -
purge_staging_cache:
name: Purge cache path
needs: [build_and_push_image, deploy_staging]
uses: zooniverse/ci-cd/.github/workflows/purge_cache.yaml@main
with:
fdname: 'frontend-preview-zooniverse-org'
path: '/*'
secrets:
creds: ${{ secrets.AZURE_STATIC_SITES }}

slack_notification:
name: Slack notification
uses: zooniverse/ci-cd/.github/workflows/slack_notification.yaml@main
needs: [build_and_push_image, deploy_staging]
needs: [build_and_push_image, deploy_staging, purge_staging_cache]
if: always()
with:
commit_id: ${{ github.sha }}
Expand Down

0 comments on commit 6449eb6

Please sign in to comment.