Skip to content

Commit

Permalink
chore(ci): add se-plus edition
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Korolev <[email protected]>
  • Loading branch information
universal-itengineer committed Dec 17, 2024
1 parent f1d9066 commit 5ef487b
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dev_module_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ jobs:
# Slect edition for build, default EE
if echo "${{ steps.get-labels.outputs.result }}" | grep -q "edition/ce"; then
echo "MODULE_EDITION=CE" >> $GITHUB_OUTPUT
elif echo "${{ steps.get-labels.outputs.result }}" | grep -q "edition/se-plus"; then
echo "MODULE_EDITION=SEPlus" >> $GITHUB_OUTPUT
else
echo "MODULE_EDITION=EE" >> "$GITHUB_OUTPUT"
fi
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/release_module_build-and-registration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,32 @@ jobs:
- uses: deckhouse/modules-actions/setup@v1
- uses: deckhouse/modules-actions/build@v1

prod_se_plus_setup_build:
runs-on: ubuntu-latest
name: Build and Push SE Plus
steps:
- name: SET VAR
run: |
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/se-plus/modules" >> "$GITHUB_ENV"
echo "MODULE_EDITION=SE-PLUS" >> "$GITHUB_ENV"
- run: |
echo $MODULES_REGISTRY
echo $MODULES_MODULE_NAME
echo $MODULES_MODULE_SOURCE
echo $MODULES_MODULE_TAG
shell: bash
name: Show vars
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Remove unwanted software
uses: ./.github/actions/remove-unwanted-software

- uses: deckhouse/modules-actions/setup@v1
- uses: deckhouse/modules-actions/build@v1

prod_ee_setup_build:
runs-on: ubuntu-latest
name: Build and Push EE
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/release_module_release-channels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ on:
ce:
type: boolean
description: CE
se-plus:
type: boolean
description: SE Plus
ee:
type: boolean
description: EE
Expand Down Expand Up @@ -100,6 +103,34 @@ jobs:

- uses: deckhouse/modules-actions/deploy@v1

job-SE-PLUS:
name: Edition SE-PLUS
runs-on: ubuntu-latest
if: github.event.inputs.ce == 'true'
steps:
- run: echo "SE-PLUS"
- name: SET VAR
run: |
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/se-plus/modules" >> "$GITHUB_ENV"
echo "MODULE_EDITION=SEPlus" >> "$GITHUB_ENV"
- name: ECHO VAR
run: |
echo $MODULES_MODULE_SOURCE
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Remove unwanted software
if: ${{ github.event.inputs.enableBuild == 'true' }}
uses: ./.github/actions/remove-unwanted-software

- uses: deckhouse/modules-actions/setup@v1

- if: ${{ github.event.inputs.enableBuild == 'true' }}
uses: deckhouse/modules-actions/build@v1

- uses: deckhouse/modules-actions/deploy@v1

job-EE:
name: Edition EE
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5ef487b

Please sign in to comment.