From db14f1d18387aa6288b1c3d024b8959e86f30007 Mon Sep 17 00:00:00 2001 From: Aleksandr Zimin Date: Fri, 5 Jan 2024 00:55:53 +0300 Subject: [PATCH 1/6] fix var Signed-off-by: Aleksandr Zimin --- .github/workflows/deploy_dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index 44dede70..a62897da 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -37,7 +37,7 @@ jobs: - name: PRINT VARS run: | echo MODULES_REGISTRY=$MODULES_REGISTRY - echo MODULE_SOURCE_NAME=$MODULE_SOURCE_NAME + echo MODULES_MODULE_SOURCE=$MODULES_MODULE_SOURCE echo CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME echo MODULES_MODULE_NAME=$MODULES_MODULE_NAME echo RELEASE_CHANNEL=$RELEASE_CHANNEL From b8a81d6c9aa90904a7b8012c32253d431f1c8a0e Mon Sep 17 00:00:00 2001 From: Aleksandr Zimin Date: Fri, 5 Jan 2024 00:58:15 +0300 Subject: [PATCH 2/6] fix validation Signed-off-by: Aleksandr Zimin --- .github/workflows/deploy_dev.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index a62897da..79574228 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -25,7 +25,7 @@ on: - "rock-solid" tag: - description: "The module's tag, which must include the -dev postfix. For example: v1.21.1-dev" + description: "The module's tag, which must include the -dev postfix. For example: v1.21.1-dev1" type: string required: true @@ -45,7 +45,7 @@ jobs: shell: bash - name: Validation for tag run: | - echo ${{ github.event.inputs.tag }} | grep -P '^v\d+\.\d+\.\d+-dev$' + echo ${{ github.event.inputs.tag }} | grep -P '^v\d+\.\d+\.\d+-dev1$' shell: bash - uses: actions/checkout@v4 From d07a7b7ae13548d15c9198d7b51aeb4b974bccb5 Mon Sep 17 00:00:00 2001 From: Aleksandr Zimin Date: Fri, 5 Jan 2024 00:58:38 +0300 Subject: [PATCH 3/6] fix validation Signed-off-by: Aleksandr Zimin --- .github/workflows/deploy_dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index 79574228..ea67d36b 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -25,7 +25,7 @@ on: - "rock-solid" tag: - description: "The module's tag, which must include the -dev postfix. For example: v1.21.1-dev1" + description: "The module's tag, which must include the -dev1 postfix. For example: v1.21.1-dev1" type: string required: true From 9767d82b2c4c6e3d3411ce38f08fc290d157bcb7 Mon Sep 17 00:00:00 2001 From: Aleksandr Zimin Date: Fri, 5 Jan 2024 01:03:51 +0300 Subject: [PATCH 4/6] Add build Signed-off-by: Aleksandr Zimin --- .github/workflows/deploy_dev.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index ea67d36b..985b988d 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -50,3 +50,4 @@ jobs: - uses: actions/checkout@v4 - uses: deckhouse/modules-actions/setup@v1 + - uses: deckhouse/modules-actions/build@v1 From 915ace9f5af0e104a23817fc82643701e85977c1 Mon Sep 17 00:00:00 2001 From: Aleksandr Zimin Date: Fri, 5 Jan 2024 01:08:55 +0300 Subject: [PATCH 5/6] Add deploy Signed-off-by: Aleksandr Zimin --- .github/workflows/deploy_dev.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index 985b988d..f7bdbf80 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -51,3 +51,4 @@ jobs: - uses: actions/checkout@v4 - uses: deckhouse/modules-actions/setup@v1 - uses: deckhouse/modules-actions/build@v1 + - uses: deckhouse/modules-actions/deploy@v1 From 473c2c0862f1bec28c1c4c7b8aca42481bd0e21e Mon Sep 17 00:00:00 2001 From: Aleksandr Zimin Date: Fri, 5 Jan 2024 01:27:17 +0300 Subject: [PATCH 6/6] add enableBuild var Signed-off-by: Aleksandr Zimin --- .github/workflows/deploy_dev.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index f7bdbf80..e10d44a3 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -28,6 +28,11 @@ on: description: "The module's tag, which must include the -dev1 postfix. For example: v1.21.1-dev1" type: string required: true + + enableBuild: + type: boolean + default: true + description: 'Set to true if build is required' jobs: deploy-dev: @@ -50,5 +55,6 @@ jobs: - uses: actions/checkout@v4 - uses: deckhouse/modules-actions/setup@v1 - - uses: deckhouse/modules-actions/build@v1 + - if: ${{ github.event.inputs.enableBuild == 'true' }} + uses: deckhouse/modules-actions/build@v1 - uses: deckhouse/modules-actions/deploy@v1