-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (59 loc) · 1.6 KB
/
release.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
60
name: Release a new version
on:
workflow_dispatch:
inputs:
nextRelease:
description: "Version to release"
type: string
required: true
nextDevelopmentVersion:
description: "Next development version"
type: string
required: true
runTests:
description: "Run IT tests"
default: true
type: boolean
jobs:
test:
if: inputs.runTests
uses: ./.github/workflows/test.yaml
with:
java-version: '17'
set-release-version:
permissions: write-all
uses: ./.github/workflows/set-version.yaml
if: always() &&
!contains(needs.test.result, 'failure') &&
!contains(needs.test.result, 'cancelled')
with:
java-version: '17'
version: ${{ inputs.nextRelease }}
commit_message: "Release ${{ inputs.nextRelease }}"
commit: true
create_tag: true
build:
uses: ./.github/workflows/build.yaml
needs: set-release-version
with:
pushDockerImage: true
version: ${{ inputs.nextRelease }}
java-version: '17'
secrets: inherit
helm-release:
permissions: write-all
uses: ./.github/workflows/helm-release.yaml
needs: build
with:
version: ${{ inputs.nextRelease }}
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
set-dev-version:
permissions: write-all
uses: ./.github/workflows/set-version.yaml
needs: helm-release
with:
version: ${{ inputs.nextDevelopmentVersion }}
commit_message: "Prepare for next development iteration ${{ inputs.nextDevelopmentVersion }}"
commit: true
java-version: '17'