-
Notifications
You must be signed in to change notification settings - Fork 18
111 lines (101 loc) · 2.85 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
name: bld_all
#NOTE: this deploys assets as well as builds
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: 'latest'
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 to use: (bump must also be set to none to keep a specific version'
required: false
default: 'latest'
type: string
bump:
description: |
How to optionally bump the semver version ( Major.Minor.Patch ) : git log will be searched for
'#major #minor #patch' or feat/ or fix/ branch names to optionally override the bump. Set to none to keep a specific version
required: false
options:
- patch
- minor
- major
- none
type: choice
ref:
description: 'git reference to use with the checkout use default_branch to have that calculated'
required: false
default: "default"
type: string
jobs:
bld_prod:
uses: ./.github/workflows/bld_maven.yml
secrets: inherit # pass all secrets
permissions:
checks: write
contents: read
issues: read
pull-requests: write
with:
artifact_name: prod
version_tag: ${{ inputs.version_tag }}
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
bld_sandbox:
uses: ./.github/workflows/bld_maven.yml
secrets: inherit # pass all secrets
permissions:
checks: write
contents: read
issues: read
pull-requests: write
with:
artifact_name: sandbox
version_tag: ${{ inputs.version_tag }}
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
bld_qa:
uses: ./.github/workflows/bld_maven.yml
secrets: inherit # pass all secrets
permissions:
checks: write
contents: read
issues: read
pull-requests: write
with:
artifact_name: qa
version_tag: ${{ inputs.version_tag }}
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}
bld_int:
uses: ./.github/workflows/bld_maven.yml
secrets: inherit # pass all secrets
permissions:
checks: write
contents: read
issues: read
pull-requests: write
with:
artifact_name: int
version_tag: ${{ inputs.version_tag }}
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}