diff --git a/workflow-templates/custom-app/nmc-custom-app-release.yml b/workflow-templates/custom-app/nmc-custom-app-release.yml new file mode 100644 index 0000000..013273f --- /dev/null +++ b/workflow-templates/custom-app/nmc-custom-app-release.yml @@ -0,0 +1,50 @@ +### +# 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 app release + +on: + workflow_dispatch: + inputs: + increment: + description: 'Release increment' + required: true + type: number + +jobs: + check-custom: + uses: nextmcloud/.github/.github/workflows/nmc-custom-app-precond.yml@master + with: + versionbranch: ${{ vars.CUSTOM_BRANCH || 'nmcstable/25.0.6' }} + increment: ${{ inputs.increment }} + secrets: inherit + assemble-custom: + uses: nextmcloud/.github/.github/workflows/nmc-custom-assembly.yml@master + with: + trunk: 'main' + stable: ${{ vars.CUSTOM_BRANCH || 'nmcstable/25.0.6' }} + result: ${{ format('customisation-{0}-{1}', vars.CUSTOM_BRANCH || jobs.check-custom.appversion , inputs.increment ) }} + secrets: inherit + build-custom: + uses: nextmcloud/.github/.github/workflows/nmc-custom-app-build.yml@master + needs: assemble-custom + with: + appname: ${{ jobs.check-custom.appname }} + stable: ${{ vars.CUSTOM_BRANCH || 'nmcstable/25.0.6' }} + assembly: ${{ format('customisation-{0}-{1}', vars.CUSTOM_BRANCH || jobs.check-custom.appversion , inputs.increment ) }} + tag: ${{ jobs.check-custom.tag }} + prerelease: true + secrets: inherit + diff --git a/workflow-templates/custom-app/nmc-custom-app-versions.yml b/workflow-templates/custom-app/nmc-custom-app-versions.yml new file mode 100644 index 0000000..62c478d --- /dev/null +++ b/workflow-templates/custom-app/nmc-custom-app-versions.yml @@ -0,0 +1,29 @@ +### +# SPDX-License-Identifier: AGPL-3.0 +# +# Author: Bernd rederlechner +# +# Assemble a customisation for trunk (no backports) and stable +# (backport xor trunk) +# +# It creates review (user-specific) customisations branches +# - customisation-- +# - customisation-- + +name: MCLOUD custom app versions + +on: + workflow_dispatch: + +jobs: + build-custom: + strategy: + fail-fast: false + matrix: + custombase: [ "main", "nmcstable/25.0.6" ] + uses: nextmcloud/.github/.github/workflows/nmc-custom-assembly.yml@master + with: + trunk: "master" + stable: ${{ matrix.custombase }} + result: ${{ format('customisation-{0}-{1}', github.actor, matrix.custombase) }} + secrets: inherit