Skip to content

Update Dockerfile

Update Dockerfile #13

name: Autoupgrade Storybook CICD
concurrency:
group: storybook-${{ github.ref }}
on:
push:
branches:
- dev
- feat/workflow-dispatch
release:
types: [released]
jobs:
storybook-repository-dispatch:
name: Trigger Repository Dispatch
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Get tag
shell: bash
id: get_tag
run: echo TAG=$(echo $GITHUB_REF | cut -d / -f 3) >> $GITHUB_OUTPUT
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.AUTOUPGRADE_CD_PAT }}
repository: ${{ secrets.AUTOUPGRADE_CD_REPOSITORY }}
event-type: storybook
#client-payload: '{"environment": "${{ github.event.action == ''released'' && ''production'' || ''integration'' }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "tag": "${{ steps.get_tag.outputs.TAG }}"}'
client-payload: '{"environment": "integration", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "tag": "${{ steps.get_tag.outputs.TAG }}"}'