Skip to content

Commit d91052f

Browse files
committed
Merge #5 Customisation automation
2 parents dc6fa38 + eaa5265 commit d91052f

File tree

2 files changed

+119
-0
lines changed

2 files changed

+119
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
###
2+
# SPDX-License-Identifier: AGPL-3.0
3+
#
4+
# Author: Bernd rederlechner <bernd.rederlechner@t-systems.com>
5+
#
6+
# Builds a stable release package based on a release assembly
7+
# customisation-<version>-<increment>
8+
#
9+
# As soon as a package is deployed to production, the tag and the branch
10+
# MUST STAY FOR 2 years and not deleted.
11+
#
12+
# Release packages, tags and customisation branches not delivered to production should
13+
# be deleted asap a newer release is available.
14+
#
15+
16+
name: MCLOUD custom app release
17+
18+
on:
19+
workflow_dispatch:
20+
inputs:
21+
increment:
22+
description: 'Release increment'
23+
required: true
24+
type: number
25+
branch:
26+
type: choice
27+
description: Branch to build a package from
28+
options:
29+
- main
30+
- stable25
31+
- stable26
32+
- stable27
33+
default: main
34+
35+
jobs:
36+
check-custom:
37+
uses: nextmcloud/.github/.github/workflows/nmc-app-precond.yml@master
38+
with:
39+
versionbranch: ${{ inputs.branch }}
40+
increment: ${{ inputs.increment }}
41+
secrets: inherit
42+
assemble-custom:
43+
uses: nextmcloud/.github/.github/workflows/nmc-custom-assembly.yml@master
44+
needs: check-custom
45+
with:
46+
trunk: 'main'
47+
stable: ${{ inputs.branch }}
48+
result: ${{ format('customisation-{0}-{1}', inputs.branch, inputs.increment ) }}
49+
secrets: inherit
50+
build-custom:
51+
uses: nextmcloud/.github/.github/workflows/nmc-custom-app-build.yml@master
52+
needs: [ check-custom, assemble-custom ]
53+
with:
54+
appname: ${{ needs.check-custom.outputs.appname }}
55+
assembly: ${{ format('customisation-{0}-{1}', inputs.branch , inputs.increment ) }}
56+
tag: ${{ needs.check-custom.outputs.tag }}
57+
prerelease: ${{ inputs.branch == 'main' && true || false }}
58+
secrets: inherit
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
###
2+
# SPDX-License-Identifier: AGPL-3.0
3+
#
4+
# Author: Bernd rederlechner <bernd.rederlechner@t-systems.com>
5+
#
6+
# Assemble a customisation for trunk (no backports) and stable
7+
# (backport xor trunk)
8+
#
9+
# It creates review (user-specific) customisations branches
10+
# - customisation-<user>-<trunk>
11+
# - customisation-<user>-<stable>
12+
13+
name: MCLOUD custom app versions
14+
15+
###
16+
# The customisation-* branches are always reassembled if a customisation branch
17+
# is updated or included into a custom PR
18+
on:
19+
workflow_dispatch:
20+
pull_request:
21+
types:
22+
- opened
23+
- reopened
24+
- synchronize
25+
branches:
26+
- master
27+
- main
28+
- trunk
29+
- nmcstable/**
30+
# - stable/**
31+
32+
jobs:
33+
34+
assemble:
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
custombase: [ "main" ]
39+
uses: nextmcloud/.github/.github/workflows/nmc-custom-assembly.yml@master
40+
with:
41+
trunk: "main"
42+
stable: ${{ matrix.custombase }}
43+
result: ${{ format('customisation-{0}-{1}', github.actor, matrix.custombase) }}
44+
secrets: inherit
45+
46+
phpunit:
47+
strategy:
48+
fail-fast: false
49+
matrix:
50+
phpversion: ['8.0', '8.1']
51+
database: ['mysql']
52+
custombase: [ "main", "nmcstable/25.0.6" ]
53+
uses: nextmcloud/.github/.github/workflows/nmc-custom-app-phpunit.yml@master
54+
needs: assemble
55+
with:
56+
assembly: ${{ format('customisation-{0}-{1}', github.actor, matrix.custombase) }}
57+
appname: 'user_oidc'
58+
server-branch: ${{ matrix.custombase }}
59+
phpversion: ${{ matrix.phpversion }}
60+
database: ${{ matrix.database }}
61+
secrets: inherit

0 commit comments

Comments
 (0)