-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.21 KB
/
testwf.yml
File metadata and controls
54 lines (46 loc) · 1.21 KB
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
44
45
46
47
48
49
50
51
52
53
54
name: Deploy Cloud New
on:
workflow_dispatch:
inputs:
branchOrCommit:
description: 'Branch/Commit/Tag'
required: false
type: string
default: 'master'
skip_ci:
description: 'Skip CI and deploy directly'
type: boolean
required: false
default: false
permissions:
id-token: write
contents: read
env:
ACTIONS_RUNNER_DEBUG: true
ACTIONS_STEP_DEBUG: true
GIT_REF: ${{ github.event_name == 'workflow_dispatch' && inputs.branchOrCommit || github.sha }}
concurrency: deploy-cloud-staging
jobs:
ci:
uses: ./.github/workflows/ci.yml
with:
branchOrCommit: ${{ inputs.branchOrCommit || github.sha }}
skip: ${{ inputs.skip_ci }}
deploy-staging:
needs: ci
if: needs.ci.result == 'success' || needs.ci.result == 'skipped'
uses: ./.github/workflows/deploy-workspace.yml
with:
check-docker-images-existence: false
check-staging:
needs: deploy-staging
if: needs.deploy-staging.result == 'success'
runs-on: ubuntu-latest
steps:
- run: echo "Check staging"
cancel-stack:
needs: deploy-staging
if: cancelled()
runs-on: ubuntu-latest
steps:
- run: echo "Cancelling stack"