From 8097e170720a55fd008c0ce94b0eaa1611144e41 Mon Sep 17 00:00:00 2001 From: "v.oleynikov" Date: Mon, 15 Jul 2024 15:10:33 +0300 Subject: [PATCH] Fix in CI Signed-off-by: v.oleynikov --- .github/workflows/build_prod.yml | 18 ++++++++++++++++++ .github/workflows/deploy_prod.yml | 23 +++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/.github/workflows/build_prod.yml b/.github/workflows/build_prod.yml index f159845c..188ef630 100644 --- a/.github/workflows/build_prod.yml +++ b/.github/workflows/build_prod.yml @@ -73,3 +73,21 @@ jobs: - uses: actions/checkout@v4 - uses: deckhouse/modules-actions/setup@v1 - uses: deckhouse/modules-actions/build@v1 + + prod_se_setup_build: + runs-on: ubuntu-latest + name: Build and Push SE + steps: + - name: SET VAR + run: | + echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/se/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 diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml index a3b7d496..5dcc45f8 100644 --- a/.github/workflows/deploy_prod.yml +++ b/.github/workflows/deploy_prod.yml @@ -33,6 +33,9 @@ on: fe: type: boolean description: FE + se: + type: boolean + description: SE tag: description: "Tag of the module, example v1.21.1" @@ -101,3 +104,23 @@ jobs: - uses: actions/checkout@v4 - uses: deckhouse/modules-actions/setup@v1 - uses: deckhouse/modules-actions/deploy@v1 + + job-SE: + name: Edition SE + runs-on: ubuntu-latest + if: github.event.inputs.se == 'true' + steps: + - run: echo "SE" + - name: SET VAR + run: | + echo "MODULES_MODULE_SOURCE=$MODULES_REGISTRY/$MODULE_SOURCE_NAME/se/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 fe $RELEASE_CHANNEL $MODULES_MODULE_TAG license-token $MODULES_READ_REGISTRY_PASSWORD + - uses: deckhouse/modules-actions/deploy@v1