Skip to content

Commit 14ae3ac

Browse files
committed
cd: release single rc version
1 parent 964a06a commit 14ae3ac

File tree

1 file changed

+44
-39
lines changed

1 file changed

+44
-39
lines changed
Lines changed: 44 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,58 @@
11
name: "Chart - Release - Candidate"
22

33
on:
4-
push:
5-
branches:
6-
- release-candidate
4+
workflow_dispatch:
5+
inputs:
6+
update-branch:
7+
type: boolean
8+
default: false
9+
camunda-version:
10+
type: choice
11+
description: Camunda version in form of x.y, alpha, or alpha-8.8.
12+
options:
13+
- "8.3"
14+
- "8.4"
15+
- "8.5"
16+
- "8.6"
17+
- "alpha"
18+
- "alpha-8.8"
719

820
jobs:
21+
reset:
22+
name: Reset Branch
23+
if: inputs.update-branch
24+
permissions:
25+
contents: write
26+
runs-on: ubuntu-latest
27+
defaults:
28+
run:
29+
shell: bash
30+
steps:
31+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
32+
with:
33+
ref: main
34+
- name: Configure Git
35+
run: |
36+
git config user.name "$GITHUB_ACTOR"
37+
git config user.email "[email protected]"
38+
- name: Update RC branch from main
39+
run: |
40+
git checkout -b release-candidate
41+
git push --force --set-upstream origin release-candidate
42+
943
release:
10-
name: Release Candidate
44+
name: Release
45+
if: inputs.camunda-version
1146
uses: ./.github/workflows/chart-release-template.yaml
1247
with:
13-
branch: ${{ github.ref_name }}
48+
branch: release-candidate
1449
workflow-ref: chart-release-template.yaml
1550
chart-matrix: |
1651
[
1752
{
18-
"name": "Helm Chart 8.2",
19-
"directory": "charts/camunda-platform-8.2",
20-
"versionSuffix": "rc-8.2",
21-
"override": false
22-
},
23-
{
24-
"name": "Helm Chart 8.3",
25-
"directory": "charts/camunda-platform-8.3",
26-
"versionSuffix": "rc-8.3",
27-
"override": false
28-
},
29-
{
30-
"name": "Helm Chart 8.4",
31-
"directory": "charts/camunda-platform-8.4",
32-
"versionSuffix": "rc-8.4",
33-
"override": false
34-
},
35-
{
36-
"name": "Helm Chart 8.5",
37-
"directory": "charts/camunda-platform-8.5",
38-
"versionSuffix": "rc-8.5",
39-
"override": false
40-
},
41-
{
42-
"name": "Helm Chart 8.6",
43-
"directory": "charts/camunda-platform-8.6",
44-
"versionSuffix": "rc-8.6",
45-
"override": false
46-
},
47-
{
48-
"name": "Helm Chart Alpha",
49-
"directory": "charts/camunda-platform-alpha",
50-
"versionSuffix": "rc-alpha",
51-
"override": false
53+
"name": "Helm Chart ${{ inputs.camunda-version }}",
54+
"directory": "charts/camunda-platform-${{ inputs.camunda-version }}",
55+
"versionSuffix": "rc-${{ inputs.camunda-version }}",
56+
"override": true
5257
}
5358
]

0 commit comments

Comments
 (0)