Skip to content

Commit

Permalink
🚧 Add separate action for testing CDN purging
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsml committed Jun 27, 2023
1 parent e319b97 commit c20d198
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/_purge_cdn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
client-id: d58b2e85-2d34-4cdb-ad70-5f2b767dd8e2
tenant-id: 3aa4a235-b6e2-48d5-9195-7fcf05b459b0
allow-no-subscriptions: true
- name: debug
shell: bash
run: echo "Profile name - ${{ inputs.cdnProfileName }}"
- name: Purge CDN endpoint 🚮
uses: azure/CLI@v1
with:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/purge_cdn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Purge CDN
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment for Storybook (development | production)'
required: false
type: choice
options:
- development
- production
default: 'development'
permissions:
id-token: write
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
purge-cdn:
if: github.event.inputs.environment == 'production'
name: Purge cdn
uses: equinor/design-system/.github/workflows/_purge_cdn.yaml@develop
secrets: inherit
with:
environment: production
cdnProfileName: ${{ vars.AZURE_CDN_PROFILE_NAME }}
cdnEndpointName: ${{ vars.AZURE_STORYBOOK_ENDPOINT_NAME }}
azureResourceGroup: ${{ vars.AZURE_RESOURCE_GROUP }}

0 comments on commit c20d198

Please sign in to comment.