Skip to content

Commit

Permalink
[CI] Add SE+ edition (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: v.oleynikov <[email protected]>
  • Loading branch information
duckhawk authored Dec 3, 2024
1 parent b7f3334 commit 5d55518
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/build_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,22 @@ jobs:
- uses: actions/checkout@v4
- uses: deckhouse/modules-actions/setup@v1
- uses: deckhouse/modules-actions/build@v1

prod_se_plus_setup_build:
runs-on: [self-hosted, regular, selectel]
name: Build and Push SE
steps:
- name: SET VAR
run: |
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/se-plus/modules" >> "$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
- uses: deckhouse/modules-actions/setup@v1
- uses: deckhouse/modules-actions/build@v1
25 changes: 24 additions & 1 deletion .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ on:
se:
type: boolean
description: SE
se-plus:
type: boolean
description: SE+

tag:
description: "Tag of the module, example v1.21.1"
Expand Down Expand Up @@ -121,7 +124,7 @@ jobs:
job-SE:
name: Edition SE
runs-on: [self-hosted, regular, selectel]
if: github.event.inputs.se == 'true'
if: github.event.inputs.se-plus == 'true'
steps:
- run: echo "SE"
- name: SET VAR
Expand All @@ -136,4 +139,24 @@ jobs:
run: |
chmod +x .github/check_previous_channel_release.sh
.github/check_previous_channel_release.sh $MODULES_MODULE_NAME se $RELEASE_CHANNEL $MODULES_MODULE_TAG license-token $MODULES_READ_REGISTRY_PASSWORD
- uses: deckhouse/modules-actions/deploy@v1

job-SE-plus:
name: Edition SE+
runs-on: [self-hosted, regular, selectel]
if: github.event.inputs.se-plus == 'true'
steps:
- run: echo "SE+"
- name: SET VAR
run: |
echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/se-plus/modules" >> "$GITHUB_ENV"
- name: ECHO VAR
run: |
echo $MODULES_MODULE_SOURCE
- uses: actions/checkout@v4
- uses: deckhouse/modules-actions/setup@v1
- name: Check previous release
run: |
chmod +x .github/check_previous_channel_release.sh
.github/check_previous_channel_release.sh $MODULES_MODULE_NAME se-plus $RELEASE_CHANNEL $MODULES_MODULE_TAG license-token $MODULES_READ_REGISTRY_PASSWORD
- uses: deckhouse/modules-actions/deploy@v1

0 comments on commit 5d55518

Please sign in to comment.