-
Notifications
You must be signed in to change notification settings - Fork 12
50 lines (46 loc) · 1.33 KB
/
main-cd.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: CD-Main
run-name: ${{ github.actor }} acitvates the actions 🚀
on:
workflow_dispatch:
branches: ['feat_system_cicd_enhancment']
inputs:
build-services:
description: 'build which services'
required: true
default: 'relay-frontend'
type: choice
options:
- relay-frontend
- contract
version:
description: 'current deploy version'
required: true
default: '0.0.1'
jobs:
build:
permissions:
contents: 'read'
id-token: 'write'
uses: ./.github/workflows/build-all.yml
with:
build-services: ${{ inputs.build-services }}
version: ${{ inputs.version }}
secrets: inherit
relay:
needs: build
permissions:
contents: 'read'
id-token: 'write'
uses: ./.github/workflows/deploy-relay.yml
with:
version: ${{ inputs.version }}
secrets: inherit
frontend:
needs: build
permissions:
contents: 'read'
id-token: 'write'
uses: ./.github/workflows/deploy-frontend.yml
with:
version: ${{ inputs.version }}
secrets: inherit