Skip to content

Commit

Permalink
Fix minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdicloud committed Jul 27, 2023
1 parent beea088 commit ab2013d
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
50 changes: 50 additions & 0 deletions workflow-templates/custom-app/nmc-custom-app-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
###
# 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 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

29 changes: 29 additions & 0 deletions workflow-templates/custom-app/nmc-custom-app-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 trunk (no backports) and stable
# (backport xor trunk)
#
# It creates review (user-specific) customisations branches
# - customisation-<user>-<trunk>
# - customisation-<user>-<stable>

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

0 comments on commit ab2013d

Please sign in to comment.