-
Notifications
You must be signed in to change notification settings - Fork 5
125 lines (112 loc) · 3.5 KB
/
bld_all.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: bld_all
permissions:
checks: write
contents: read
issues: read
pull-requests: write
on:
workflow_call:
inputs:
version_tag:
description: 'Version tag to use: (bump must also be set to none to keep a specific version'
required: false
default: '0.0.1-dev'
type: string
bump:
description: 'whether to bump the version number by a major minor patch'
required: false
default: 'patch'
type: string
ref:
description: 'git reference to use with the checkout use default_branch to have that calculated'
required: false
default: "default"
type: string
workflow_dispatch:
inputs:
version_tag:
description: 'Version_tag :- tag that will be used to tag docker containers. This should normally match the tag that you used in the git ref. e.g if you used release-1.72.22 as your git reference, this would normally be release-1.72.22'
required: false
default: 'release-0.0.1'
type: string
ref:
description: 'git reference to use with the checkout. This should be the tag that you want to build'
required: true
default: "release-1.72.22"
type: string
jobs:
bld_ui:
uses: ./.github/workflows/bld_docker.yml
secrets: inherit # pass all secrets
with:
docker_name: ui
context: ui
version_tag: ${{ inputs.version_tag }}
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
bld_memberservice:
uses: ./.github/workflows/bld_docker_jib.yml
secrets: inherit # pass all secrets
with:
context: member-service
version_tag: ${{ inputs.version_tag }}
docker_name: memberservice
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
bld_assertionservice:
uses: ./.github/workflows/bld_docker_jib.yml
secrets: inherit # pass all secrets
with:
context: assertion-service
version_tag: ${{ inputs.version_tag }}
docker_name: assertionservice
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
bld_discoveryservice:
uses: ./.github/workflows/bld_docker_jib.yml
secrets: inherit # pass all secrets
with:
context: discovery-service
version_tag: ${{ inputs.version_tag }}
docker_name: discoveryservice
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
bld_userservice:
uses: ./.github/workflows/bld_docker_jib.yml
secrets: inherit # pass all secrets
with:
context: user-service
version_tag: ${{ inputs.version_tag }}
docker_name: userservice
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
bld_gateway_qa:
uses: ./.github/workflows/bld_docker_jib.yml
secrets: inherit # pass all secrets
with:
context: gateway
version_tag: ${{ inputs.version_tag }}
docker_name: gateway
angular_env: qa
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
bld_gateway_sandbox:
uses: ./.github/workflows/bld_docker_jib.yml
secrets: inherit # pass all secrets
with:
context: gateway
version_tag: ${{ inputs.version_tag }}
docker_name: gateway
angular_env: sandbox
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
bld_gateway_prod:
uses: ./.github/workflows/bld_docker_jib.yml
secrets: inherit # pass all secrets
with:
context: gateway
version_tag: ${{ inputs.version_tag }}
docker_name: gateway
angular_env: prod
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}