forked from nextcloud/user_oidc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
### | ||
# SPDX-License-Identifier: AGPL-3.0 | ||
# | ||
# Author: Bernd rederlechner <bernd.rederlechner@t-systems.com> | ||
# | ||
# 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
### | ||
# SPDX-License-Identifier: AGPL-3.0 | ||
# | ||
# Author: Bernd rederlechner <bernd.rederlechner@t-systems.com> | ||
# | ||
# 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 | ||
|
||
### | ||
# The customisation-* branches are always reassembled if a customisation branch | ||
# is updated or included into a custom PR | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
branches: | ||
- master | ||
- main | ||
- trunk | ||
- nmcstable/** | ||
# - stable/** | ||
|
||
jobs: | ||
|
||
assemble: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
custombase: [ "main", "nmcstable/25.0.6" ] | ||
uses: nextmcloud/.github/.github/workflows/nmc-custom-assembly.yml@master | ||
with: | ||
trunk: "main" | ||
stable: ${{ matrix.custombase }} | ||
result: ${{ format('customisation-{0}-{1}', github.actor, matrix.custombase) }} | ||
secrets: inherit | ||
|
||
phpunit: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
phpversion: ['8.0', '8.1'] | ||
database: ['mysql'] | ||
custombase: [ "main", "nmcstable/25.0.6" ] | ||
uses: nextmcloud/.github/.github/workflows/nmc-custom-app-phpunit.yml@master | ||
needs: assemble | ||
with: | ||
assembly: ${{ format('customisation-{0}-{1}', github.actor, matrix.custombase) }} | ||
appname: 'user_oidc' | ||
server-branch: ${{ matrix.custombase }} | ||
phpversion: ${{ matrix.phpversion }} | ||
database: ${{ matrix.database }} | ||
secrets: inherit |