cd: release docker compose as an artifact #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
- docker-compose/versions/** | |
pull_request: | |
paths: | |
- .github/workflows/docker-compose-release-template.yaml | |
- .github/workflows/docker-compose-release.yaml | |
- docker-compose/versions/** | |
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-*" | |
outputs: | |
changed-versions: ${{ steps.generate-versions-matrix.outputs.changed }} | |
unchanged-versions: ${{ steps.generate-versions-matrix.outputs.unchanged }} | |
exec: | |
needs: [init] | |
name: ${{ matrix.versions.name || 'No Changes' }} | |
if: ${{ !fromJson(needs.init.outputs.changed-versions) }} | |
strategy: | |
fail-fast: false | |
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 }} |