mirror of
https://github.com/thomisus/Docker-DocumentServer.git
synced 2026-10-21 05:21:29 +00:00
Refactor(ci): fold developers editions into enterprise toogle
This commit is contained in:
parent
24fcc1142d
commit
a4c4c802bb
1 changed files with 3 additions and 10 deletions
13
.github/workflows/stable-build.yml
vendored
13
.github/workflows/stable-build.yml
vendored
|
|
@ -1,6 +1,6 @@
|
|||
### This workflow setup instance then build and push images ###
|
||||
name: Multi-arch build stable
|
||||
run-name: ${{ inputs.tag }} (${{ inputs.release_number }}) — ${{ inputs.community && 'CE ' || '' }}${{ inputs.enterprise && 'EE ' || '' }}${{ inputs.developer && 'DE' || '' }}
|
||||
run-name: ${{ inputs.tag }} (${{ inputs.release_number }}) — ${{ inputs.community && 'CE ' || '' }}${{ inputs.enterprise && 'EE DE' || '' }}
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
|
@ -25,11 +25,7 @@ on:
|
|||
default: true
|
||||
enterprise:
|
||||
type: boolean
|
||||
description: 'Release Enterprise Edition'
|
||||
default: true
|
||||
developer:
|
||||
type: boolean
|
||||
description: 'Release Developer Edition'
|
||||
description: 'Release Enterprise editions (-ee and -de)'
|
||||
default: true
|
||||
|
||||
env:
|
||||
|
|
@ -53,16 +49,13 @@ jobs:
|
|||
env:
|
||||
INPUT_C: ${{ github.event.inputs.community }}
|
||||
INPUT_E: ${{ github.event.inputs.enterprise }}
|
||||
INPUT_D: ${{ github.event.inputs.developer }}
|
||||
run: |
|
||||
set -eux
|
||||
editions=$(jq -nc \
|
||||
--argjson c "$INPUT_C" \
|
||||
--argjson e "$INPUT_E" \
|
||||
--argjson d "$INPUT_D" \
|
||||
'[ if $c then "" else empty end,
|
||||
if $e then "-ee" else empty end,
|
||||
if $d then "-de" else empty end ]')
|
||||
if $e then ("-ee", "-de") else empty end ]')
|
||||
editions_ucs=$(echo "$editions" | jq -c 'map(select(. != "-de"))')
|
||||
echo "editions=$editions" >> "$GITHUB_OUTPUT"
|
||||
echo "editions_ucs=$editions_ucs" >> "$GITHUB_OUTPUT"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue