-
Notifications
You must be signed in to change notification settings - Fork 61
59 lines (53 loc) · 1.46 KB
/
pipeline.yaml
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
name: Pipeline
on:
workflow_call:
inputs:
effective-branch:
required: true
type: string
release:
required: true
type: boolean
version:
required: true
type: string
secrets:
AWS_ACCESS_KEY_ID:
# only needed for release builds
required: false
AWS_SECRET_ACCESS_KEY:
# only needed for release builds
required: false
DOCKER_USERNAME:
# only needed for release builds
required: false
DOCKER_PASSWORD:
# only needed for release builds
required: false
jobs:
validate:
uses: ./.github/workflows/validate.yaml
integ-test:
uses: ./.github/workflows/integ-test.yaml
release:
needs: [validate, integ-test]
if: ${{ inputs.release || inputs.effective-branch == 'develop' }}
uses: ./.github/workflows/release.yaml
with:
effective-branch: ${{ inputs.effective-branch }}
release: ${{ inputs.release }}
version: ${{ inputs.version }}
secrets: inherit
maven-publish:
needs: [validate, integ-test]
if: ${{ inputs.release }}
uses: ./.github/workflows/maven-publish.yaml
secrets: inherit
distroless:
needs: [validate, integ-test]
if: ${{ inputs.release || inputs.effective-branch == 'develop' }}
uses: ./.github/workflows/distroless.yaml
with:
effective-branch: ${{ inputs.effective-branch }}
version: ${{ inputs.version }}
secrets: inherit