Skip to content

Commit

Permalink
Add templates to add for own server customisations
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdicloud committed Jul 11, 2023
1 parent 914ff80 commit 6d39dcd
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
43 changes: 43 additions & 0 deletions workflow-templates/custom-server/nmc-custom-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
###
# SPDX-License-Identifier: AGPL-3.0
#
# Author: Bernd rederlechner <[email protected]>
#
# Builds a stable release package based on a release assembly
# customisation-<version>-<increment>
#
# 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
29 changes: 29 additions & 0 deletions workflow-templates/custom-server/nmc-custom-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
###
# SPDX-License-Identifier: AGPL-3.0
#
# Author: Bernd rederlechner <[email protected]
#
# Assemble a customisation for recent trunk or a stable branch
# If trunk, no backports are considered. For stable, only the
# backports targetted for this baseline are considered.
#
# Assembly fails if a PR does not merge automatically.
#

name: MCLOUD custom versions

on:
workflow_dispatch:

jobs:
build-custom:
strategy:
fail-fast: false
matrix:
custombase: [ "master", "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

0 comments on commit 6d39dcd

Please sign in to comment.