Skip to content

Platform Preparations to move to Camel 4 #58

Platform Preparations to move to Camel 4

Platform Preparations to move to Camel 4 #58

name: Finish Release
on:
workflow_dispatch:
issues:
types: [ closed ]
jobs:
release-new-version:
if: |
(contains(github.event.issue.labels.*.name, 'major') ||
contains(github.event.issue.labels.*.name, 'minor') ||
contains(github.event.issue.labels.*.name, 'patch')) &&
github.event.issue.milestone.title != ''
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Finish release
run: echo "Finish release of gateway"
create-new-branch:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: "${{github.event.issue.milestone.title}}"
sha: '${{ github.event.pull_request.head.sha }}'
call-update-version:
needs: create-new-branch
uses: ./.github/workflows/update-version.yml
secrets: inherit
with:
branch: "${{github.event.issue.milestone.title}}"
milestone: "${{github.event.issue.milestone.title}}"
call-base-release-version:
needs: release-new-version
uses: assimbly/base/.github/workflows/release-finish.yml@develop
secrets: inherit
with:
branch: "${{github.event.issue.milestone.title}}"
milestone: "${{github.event.issue.milestone.title}}"
call-runtime-release-version:
needs: call-base-release-version
uses: assimbly/runtime/.github/workflows/release-finish.yml@develop
secrets: inherit
with:
branch: "${{github.event.issue.milestone.title}}"
milestone: "${{github.event.issue.milestone.title}}"
call-custom-components-release-version:
needs: call-runtime-release-version
uses: assimbly/custom-components/.github/workflows/release-finish.yml@develop
secrets: inherit
with:
branch: "${{github.event.issue.milestone.title}}"
milestone: "${{github.event.issue.milestone.title}}"
delete_old_snapshots:
needs: call-custom-components-release-version
runs-on: ubuntu-latest
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Delete older snapshots
uses: smartsquaregmbh/[email protected]
with:
organization: assimbly
type: maven
keep: 0
semver-pattern: "${{github.event.issue.milestone.title}}"
names: |
org.assimbly.gateway.full
org.assimbly.gateway.headless
org.assimbly.gateway.integration
org.assimbly.gateway.broker
call-full-release-jars:
needs: delete_old_snapshots
uses: ./.github/workflows/release-jars.yml
secrets: inherit
with:
module: 'full'
branch: 'main'
call-integration-release-jars:
needs: delete_old_snapshots
uses: ./.github/workflows/release-jars.yml
secrets: inherit
with:
module: 'integration'
branch: 'main'
call-broker-release-jars:
needs: delete_old_snapshots
uses: ./.github/workflows/release-jars.yml
secrets: inherit
with:
module: 'broker'
branch: 'main'
call-headless-release-jars:
needs: delete_old_snapshots
uses: ./.github/workflows/release-jars.yml
secrets: inherit
with:
module: 'headless'
branch: 'main'
call-full-release-dockerhub-image:
needs: delete_old_snapshots
uses: ./.github/workflows/release-dockerhub-images.yml
secrets: inherit
with:
module: 'full'
branch: 'main'
tag: "${{github.event.issue.milestone.title}}"
type: 'full'
call-integration-release-dockerhub-image:
needs: delete_old_snapshots
uses: ./.github/workflows/release-dockerhub-images.yml
secrets: inherit
with:
module: 'integration'
branch: 'main'
tag: "${{github.event.issue.milestone.title}}"
type: 'default'
call-broker-release-dockerhub-image:
needs: delete_old_snapshots
uses: ./.github/workflows/release-dockerhub-images.yml
secrets: inherit
with:
module: 'broker'
branch: 'main'
tag: "${{github.event.issue.milestone.title}}"
type: 'default'
call-headless-release-dockerhub-image:
needs: delete_old_snapshots
uses: ./.github/workflows/release-dockerhub-images.yml
secrets: inherit
with:
module: 'headless'
branch: 'main'
tag: "${{github.event.issue.milestone.title}}"
type: 'full'
call-headless-release-aws-image:
needs: delete_old_snapshots
uses: ./.github/workflows/release-aws-images.yml
secrets: inherit
with:
module: 'headless'
branch: 'main'
tag: "${{github.event.issue.milestone.title}}"
type: 'full'
call-broker-release-aws-image:
needs: delete_old_snapshots
uses: ./.github/workflows/release-aws-images.yml
secrets: inherit
with:
module: 'broker'
branch: 'develop'
tag: "${{github.event.issue.milestone.title}}"
type: 'default'
call-release-notes-drafter:
needs: delete_old_snapshots
uses: ./.github/workflows/release-drafter.yml
secrets: inherit
with:
branch: 'main'
milestone: 'broker'