-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (64 loc) · 2.17 KB
/
docker-compose-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
61
62
63
64
65
66
67
68
# NOTE: Camunda Docker Compose release is a rolling release.
# So it's always 1 artifact per Camunda minor version.
name: "Docker Compose | Release"
on:
push:
branches:
- main
paths:
- .github/workflows/docker-compose-release-template.yaml
- .github/workflows/docker-compose-release.yaml
- docker-compose/versions/**
pull_request:
paths:
- .github/workflows/docker-compose-release-template.yaml
- .github/workflows/docker-compose-release.yaml
workflow_dispatch:
inputs:
release-all:
description: Release all versions.
default: true
type: boolean
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}
cancel-in-progress: true
jobs:
init:
name: Generate version matrix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Generate versions
id: generate-versions-matrix
uses: ./.github/actions/generate-versions-matrix
with:
versions-path: "docker-compose/versions/camunda-*"
reset-versions: "${{ inputs.release-all || 'false' }}"
outputs:
should-run: ${{ steps.generate-versions-matrix.outputs.should-run }}
unchanged-versions: ${{ steps.generate-versions-matrix.outputs.unchanged }}
exec:
needs: [init]
if: ${{ needs.init.outputs.should-run == 'true' }}
name: ${{ matrix.versions.name || 'Skipped' }}
strategy:
fail-fast: false
# To release the versions in the same order as presented in the matrix.
max-parallel: 1
matrix:
versions:
- name: Camunda 8.3
camunda-version: 8.3
- name: Camunda 8.4
camunda-version: 8.5
- name: Camunda 8.5
camunda-version: 8.5
- name: Camunda 8.6
camunda-version: 8.6
- name: Camunda Alpha
camunda-version: alpha
exclude: ${{ fromJson(needs.init.outputs.unchanged-versions) }}
uses: ./.github/workflows/docker-compose-release-template.yaml
secrets: inherit
with:
camunda-version: ${{ matrix.versions.camunda-version }}