Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/_purge_cdn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,17 @@ on:
endpoint:
type: string
default: artefacts
# Because of limitations in how to set environment context when calling reusable workflows,
# we are using ENV variables directly in this one. Not pretty, but it works.
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
AZURE_CDN_PROFILE_NAME: ${{ vars.AZURE_CDN_PROFILE_NAME }}
AZURE_CDN_ENDPOINT_NAME: ${{ vars.AZURE_CDN_ENDPOINT_NAME }}
AZURE_STORYBOOK_ENDPOINT_NAME: ${{ vars.AZURE_STORYBOOK_ENDPOINT_NAME }}
AZURE_RESOURCE_GROUP: ${{ vars.AZURE_RESOURCE_GROUP }}
jobs:
purge:
name: Purge the cdn to refresh cache
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
AZURE_CDN_PROFILE_NAME: ${{ vars.AZURE_CDN_PROFILE_NAME }}
AZURE_CDN_ENDPOINT_NAME: ${{ vars.AZURE_CDN_ENDPOINT_NAME }}
AZURE_STORYBOOK_ENDPOINT_NAME: ${{ vars.AZURE_STORYBOOK_ENDPOINT_NAME }}
AZURE_RESOURCE_GROUP: ${{ vars.AZURE_RESOURCE_GROUP }}
steps:
- name: Az CLI login 🔑 # Using federated credential
uses: azure/login@v1
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/publish_storybook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
required: false
type: choice
options:
- development
- production
default: 'development'
- development
default: 'production'
push:
branches:
- main
Expand Down Expand Up @@ -177,9 +177,10 @@ jobs:

purge-cdn:
needs: [publish-storybook]
if: github.event.inputs.environment == 'production'
Comment thread
pomfrida marked this conversation as resolved.
name: Purge cdn
uses: ./.github/workflows/_purge_cdn.yaml
secrets: inherit
with:
environment: ${{ github.event.inputs.environment || 'development' }}
environment: production
endpoint: storybook
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ While the design system itself lives in [Figma][], this repository contains impl

## Quick links

- [Storybook](https://storybook.eds.equinor.com/)
- [Storybook (prod)](https://storybook.eds.equinor.com/)
- [Storybook (dev)](https://s478stedsstorybookdev.z16.web.core.windows.net/) – latest from `main`
- [Figma](https://www.figma.com/files/682286909510540417/team/590517879490131675/EDS---Equinor-Design-System?fuid=677437722215124736)
- [Storefront](https://eds.equinor.com)
- [Slack](https://equinor.slack.com/archives/CJT20H1B9)
Expand Down
Loading