-
Notifications
You must be signed in to change notification settings - Fork 285
71 lines (65 loc) · 1.84 KB
/
deploy-stack.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Deploy Services
run-name: Deploy of ${{ inputs.service }} to ${{ inputs.environment }} by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
environment:
type: choice
required: true
description: "where to deploy"
default: "tools"
options:
- tools
- production
service:
type: choice
required: true
description: "service to deploy"
options:
- all
- pinga
- rebaser
- sdf
- veritech
- web
version:
type: string
required: true
description: "version to deploy"
default: "stable"
jobs:
invalidate-cache:
uses: ./.github/workflows/invalidate-cache.yml
with:
environment: shared
secrets: inherit
deploy-service:
needs: invalidate-cache
if: ${{ github.event.inputs.service != 'all' }}
uses: ./.github/workflows/deploy-service.yml
with:
environment: ${{ github.event.inputs.environment }}
service: ${{ github.event.inputs.service }}
version: ${{ github.event.inputs.version }}
secrets: inherit
deploy-services:
needs: invalidate-cache
if: ${{ github.event.inputs.service == 'all' }}
strategy:
fail-fast: false
matrix:
service: ["pinga", "rebaser", "sdf", "veritech", "web"]
uses: ./.github/workflows/deploy-service.yml
with:
environment: ${{ github.event.inputs.environment }}
service: ${{ matrix.service }}
version: ${{ github.event.inputs.version }}
secrets: inherit
set-init:
needs: invalidate-cache
uses: ./.github/workflows/set-init-version.yml
with:
environment: ${{ github.event.inputs.environment }}
service: ${{ github.event.inputs.service }}
version: ${{ github.event.inputs.version }}
secrets: inherit