-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.17 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: 📤 Deploy Staging
on:
workflow_dispatch:
inputs:
image-tag:
description: The image tag to deploy (optional, if not provided, the image will be built first)
type: string
default: ''
required: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
if: inputs.image-tag == ''
uses: ./.github/workflows/build.yml
secrets: inherit
deploy:
if: inputs.image-tag == ''
runs-on: arc-runner-set
needs: build
steps:
- uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GH_TOKEN }}
repository: dream-num/helm-chart-private
event-type: dispatch
client-payload: '{"service":"univer-typedoc","tag":"${{ needs.build.outputs.image-tag }}"}'
deploy-trigger:
if: inputs.image-tag != ''
runs-on: arc-runner-set
steps:
- uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GH_TOKEN }}
repository: dream-num/helm-chart-private
event-type: dispatch
client-payload: '{"service":"univer-typedoc","tag":"${{ inputs.image-tag }}"}'