-
Notifications
You must be signed in to change notification settings - Fork 37
50 lines (49 loc) · 1.31 KB
/
production.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
44
45
46
47
48
49
50
name: Portal Bridge [Release]
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment Name'
type: choice
options:
- 'Cloudflare-Preview'
- 'Cloudflare-Page-Deploy'
required: true
default: 'Cloudflare-Page-Deploy'
connect-branch:
description: 'Branch Name'
type: string
required: true
default: 'portal-bridge'
advanced-tools-branch:
description: 'Branch Name'
type: string
required: true
default: 'advanced-tools'
jobs:
build:
name: "Build Release"
uses: ./.github/workflows/build.yml
with:
name: prod
connect-branch: ${{inputs.connect-branch}}
advanced-tools-branch: ${{inputs.advanced-tools-branch}}
environment: ${{inputs.environment}}
secrets: inherit
deploy:
name: Trigger Production Deploy
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}-deploy-release
cancel-in-progress: true
needs:
- build
environment: ${{inputs.environment}}
steps:
- name: Wait package publish to impact
run: sleep 60s
shell: bash
- name: Trigger deploy
env:
DEPLOY_HOOK_URL: ${{ secrets.DEPLOY_HOOK_URL }}
run: curl -X POST ${DEPLOY_HOOK_URL}