From 6d39dcdb173645c42b011dd650c8e6ab4b110a73 Mon Sep 17 00:00:00 2001 From: "Bernd.Rederlechner@t-systems.com" Date: Tue, 11 Jul 2023 18:08:08 +0200 Subject: [PATCH] Add templates to add for own server customisations --- .../custom-server/nmc-custom-release.yml | 43 +++++++++++++++++++ .../custom-server/nmc-custom-versions.yml | 29 +++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 workflow-templates/custom-server/nmc-custom-release.yml create mode 100644 workflow-templates/custom-server/nmc-custom-versions.yml diff --git a/workflow-templates/custom-server/nmc-custom-release.yml b/workflow-templates/custom-server/nmc-custom-release.yml new file mode 100644 index 0000000..9bcae71 --- /dev/null +++ b/workflow-templates/custom-server/nmc-custom-release.yml @@ -0,0 +1,43 @@ +### +# SPDX-License-Identifier: AGPL-3.0 +# +# Author: Bernd rederlechner +# +# Builds a stable release package based on a release assembly +# customisation-- +# +# As soon as a package is deployed to production, the tag and the branch +# MUST STAY FOR 2 years and not deleted. +# +# Release packages, tags and customisation branches not delivered to production should +# be deleted asap a newer release is available. +# + + +name: MCLOUD custom server release + +on: + workflow_dispatch: + inputs: + increment: + description: 'Release increment' + required: true + type: number + +jobs: + assemble-custom: + uses: nextmcloud/.github/.github/workflows/nmc-custom-assembly.yml@master + with: + trunk: 'master' + stable: ${{ vars.CUSTOM_BRANCH || 'nmcstable/25.0.6' }} + result: ${{ format('customisation-{0}-{1}', vars.CUSTOM_BRANCH || 'nmcstable/25.0.6', inputs.increment ) }} + secrets: inherit + build-custom: + uses: nextmcloud/.github/.github/workflows/nmc-custom-server-build.yml@master + needs: assemble-custom + with: + stable: ${{ vars.CUSTOM_BRANCH || 'nmcstable/25.0.6' }} + assembly: ${{ format('customisation-{0}-{1}', vars.CUSTOM_BRANCH || 'nmcstable/25.0.6', inputs.increment ) }} + tag: ${{ format('{0}-{1}', vars.CUSTOM_BRANCH || 'nmcstable/25.0.6' , inputs.increment) }} + prerelease: false + secrets: inherit diff --git a/workflow-templates/custom-server/nmc-custom-versions.yml b/workflow-templates/custom-server/nmc-custom-versions.yml new file mode 100644 index 0000000..e130532 --- /dev/null +++ b/workflow-templates/custom-server/nmc-custom-versions.yml @@ -0,0 +1,29 @@ +### +# SPDX-License-Identifier: AGPL-3.0 +# +# Author: Bernd rederlechner