diff --git a/.github/workflows/e2e-abort-aws.yml b/.github/workflows/e2e-abort-aws.yml index 07aa66fcf..8e6f5825f 100644 --- a/.github/workflows/e2e-abort-aws.yml +++ b/.github/workflows/e2e-abort-aws.yml @@ -1558,7 +1558,7 @@ jobs: # run_containerd_1_31: name: "destroy cluster: AWS, Containerd, Kubernetes 1.31" - if: ${{ github.event.inputs.cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'WithoutNAT' }} + if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'WithoutNAT' }} env: PROVIDER: AWS CRI: Containerd diff --git a/.github/workflows/e2e-abort-azure.yml b/.github/workflows/e2e-abort-azure.yml index aedb3beaa..5e95770c5 100644 --- a/.github/workflows/e2e-abort-azure.yml +++ b/.github/workflows/e2e-abort-azure.yml @@ -1578,7 +1578,7 @@ jobs: # run_containerd_1_31: name: "destroy cluster: Azure, Containerd, Kubernetes 1.31" - if: ${{ github.event.inputs.cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'Standard' }} + if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'Standard' }} env: PROVIDER: Azure CRI: Containerd diff --git a/.github/workflows/e2e-abort-eks.yml b/.github/workflows/e2e-abort-eks.yml index 00c82751a..8db65c42d 100644 --- a/.github/workflows/e2e-abort-eks.yml +++ b/.github/workflows/e2e-abort-eks.yml @@ -1568,7 +1568,7 @@ jobs: # run_containerd_1_31: name: "destroy cluster: EKS, Containerd, Kubernetes 1.31" - if: ${{ github.event.inputs.cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'WithoutNAT' }} + if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'WithoutNAT' }} env: PROVIDER: EKS CRI: Containerd diff --git a/.github/workflows/e2e-abort-gcp.yml b/.github/workflows/e2e-abort-gcp.yml index 3743836a5..ad4432ee3 100644 --- a/.github/workflows/e2e-abort-gcp.yml +++ b/.github/workflows/e2e-abort-gcp.yml @@ -1548,7 +1548,7 @@ jobs: # run_containerd_1_31: name: "destroy cluster: GCP, Containerd, Kubernetes 1.31" - if: ${{ github.event.inputs.cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'WithoutNAT' }} + if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'WithoutNAT' }} env: PROVIDER: GCP CRI: Containerd diff --git a/.github/workflows/e2e-abort-openstack.yml b/.github/workflows/e2e-abort-openstack.yml index 958951390..6ce9c5ee1 100644 --- a/.github/workflows/e2e-abort-openstack.yml +++ b/.github/workflows/e2e-abort-openstack.yml @@ -1548,7 +1548,7 @@ jobs: # run_containerd_1_31: name: "destroy cluster: OpenStack, Containerd, Kubernetes 1.31" - if: ${{ github.event.inputs.cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'Standard' }} + if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'Standard' }} env: PROVIDER: OpenStack CRI: Containerd diff --git a/.github/workflows/e2e-abort-static.yml b/.github/workflows/e2e-abort-static.yml index fa380515c..80f00fc70 100644 --- a/.github/workflows/e2e-abort-static.yml +++ b/.github/workflows/e2e-abort-static.yml @@ -1548,7 +1548,7 @@ jobs: # run_containerd_1_31: name: "destroy cluster: Static, Containerd, Kubernetes 1.31" - if: ${{ github.event.inputs.cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'Static' }} + if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'Static' }} env: PROVIDER: Static CRI: Containerd diff --git a/.github/workflows/e2e-abort-vcd.yml b/.github/workflows/e2e-abort-vcd.yml index 70fd7a5d4..de7e253c2 100644 --- a/.github/workflows/e2e-abort-vcd.yml +++ b/.github/workflows/e2e-abort-vcd.yml @@ -1588,7 +1588,7 @@ jobs: # run_containerd_1_31: name: "destroy cluster: VCD, Containerd, Kubernetes 1.31" - if: ${{ github.event.inputs.cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'Standard' }} + if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'Standard' }} env: PROVIDER: VCD CRI: Containerd diff --git a/.github/workflows/e2e-abort-vsphere.yml b/.github/workflows/e2e-abort-vsphere.yml index 95000c387..094cffa5e 100644 --- a/.github/workflows/e2e-abort-vsphere.yml +++ b/.github/workflows/e2e-abort-vsphere.yml @@ -1558,7 +1558,7 @@ jobs: # run_containerd_1_31: name: "destroy cluster: vSphere, Containerd, Kubernetes 1.31" - if: ${{ github.event.inputs.cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'Standard' }} + if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'Standard' }} env: PROVIDER: vSphere CRI: Containerd diff --git a/.github/workflows/e2e-abort-yandex-cloud.yml b/.github/workflows/e2e-abort-yandex-cloud.yml index 307c7a710..abd123eca 100644 --- a/.github/workflows/e2e-abort-yandex-cloud.yml +++ b/.github/workflows/e2e-abort-yandex-cloud.yml @@ -1568,7 +1568,7 @@ jobs: # run_containerd_1_31: name: "destroy cluster: Yandex.Cloud, Containerd, Kubernetes 1.31" - if: ${{ github.event.inputs.cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'WithoutNAT' }} + if: ${{ fromJson(inputs.test_config).cri == 'containerd' && github.event.inputs.k8s_version == '1.31' && github.event.inputs.layout == 'WithoutNAT' }} env: PROVIDER: Yandex.Cloud CRI: Containerd diff --git a/.github/workflows/e2e-aws.yml b/.github/workflows/e2e-aws.yml index d0c2207b8..0e26d873e 100644 --- a/.github/workflows/e2e-aws.yml +++ b/.github/workflows/e2e-aws.yml @@ -2676,6 +2676,7 @@ jobs: LAYOUT: WithoutNAT KUBERNETES_VERSION: "1.31" EVENT_LABEL: ${{ github.event.label.name }} + WERF_ENV: "${{ fromJson(inputs.test_config).edition || 'FE'}}" runs-on: [self-hosted, e2e-common] steps: @@ -2829,16 +2830,21 @@ jobs: SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}" fi + # Add edition name for non-FE tests on branch + if [[ -n ${WERF_ENV} && ${WERF_ENV} != "FE" ]]; then + IMAGE_EDITION=$(echo ${WERF_ENV} | tr '[:upper:]' '[:lower:]') + fi + # Prepare initial image tag for deploy/deckhouse to test switching from previous release. INITIAL_IMAGE_TAG= if [[ -n ${INITIAL_REF_SLUG} ]] ; then - INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} fi # Prepare image tag for deploy/deckhouse (DECKHOUSE_IMAGE_TAG option in testing/cloud_layouts/script.sh). # CI_COMMIT_REF_SLUG is a 'prNUM' for dev branches or 'main' for default branch. # Use it as image tag. Add suffix to not overlap with PRs in main repo. - IMAGE_TAG=${CI_COMMIT_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + IMAGE_TAG=${CI_COMMIT_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} INSTALL_IMAGE_NAME= if [[ -n ${CI_COMMIT_BRANCH} ]]; then diff --git a/.github/workflows/e2e-azure.yml b/.github/workflows/e2e-azure.yml index f28d6c440..3e97a940f 100644 --- a/.github/workflows/e2e-azure.yml +++ b/.github/workflows/e2e-azure.yml @@ -2716,6 +2716,7 @@ jobs: LAYOUT: Standard KUBERNETES_VERSION: "1.31" EVENT_LABEL: ${{ github.event.label.name }} + WERF_ENV: "${{ fromJson(inputs.test_config).edition || 'FE'}}" runs-on: [self-hosted, e2e-common] steps: @@ -2869,16 +2870,21 @@ jobs: SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}" fi + # Add edition name for non-FE tests on branch + if [[ -n ${WERF_ENV} && ${WERF_ENV} != "FE" ]]; then + IMAGE_EDITION=$(echo ${WERF_ENV} | tr '[:upper:]' '[:lower:]') + fi + # Prepare initial image tag for deploy/deckhouse to test switching from previous release. INITIAL_IMAGE_TAG= if [[ -n ${INITIAL_REF_SLUG} ]] ; then - INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} fi # Prepare image tag for deploy/deckhouse (DECKHOUSE_IMAGE_TAG option in testing/cloud_layouts/script.sh). # CI_COMMIT_REF_SLUG is a 'prNUM' for dev branches or 'main' for default branch. # Use it as image tag. Add suffix to not overlap with PRs in main repo. - IMAGE_TAG=${CI_COMMIT_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + IMAGE_TAG=${CI_COMMIT_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} INSTALL_IMAGE_NAME= if [[ -n ${CI_COMMIT_BRANCH} ]]; then diff --git a/.github/workflows/e2e-eks.yml b/.github/workflows/e2e-eks.yml index 39196f6d5..c1c94ac24 100644 --- a/.github/workflows/e2e-eks.yml +++ b/.github/workflows/e2e-eks.yml @@ -2881,6 +2881,7 @@ jobs: LAYOUT: WithoutNAT KUBERNETES_VERSION: "1.31" EVENT_LABEL: ${{ github.event.label.name }} + WERF_ENV: "${{ fromJson(inputs.test_config).edition || 'FE'}}" runs-on: [self-hosted, e2e-common] steps: @@ -3034,16 +3035,21 @@ jobs: SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}" fi + # Add edition name for non-FE tests on branch + if [[ -n ${WERF_ENV} && ${WERF_ENV} != "FE" ]]; then + IMAGE_EDITION=$(echo ${WERF_ENV} | tr '[:upper:]' '[:lower:]') + fi + # Prepare initial image tag for deploy/deckhouse to test switching from previous release. INITIAL_IMAGE_TAG= if [[ -n ${INITIAL_REF_SLUG} ]] ; then - INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} fi # Prepare image tag for deploy/deckhouse (DECKHOUSE_IMAGE_TAG option in testing/cloud_layouts/script.sh). # CI_COMMIT_REF_SLUG is a 'prNUM' for dev branches or 'main' for default branch. # Use it as image tag. Add suffix to not overlap with PRs in main repo. - IMAGE_TAG=${CI_COMMIT_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + IMAGE_TAG=${CI_COMMIT_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} INSTALL_IMAGE_NAME= TERRAFORM_IMAGE_NAME= diff --git a/.github/workflows/e2e-gcp.yml b/.github/workflows/e2e-gcp.yml index b8270c08c..a35288f9d 100644 --- a/.github/workflows/e2e-gcp.yml +++ b/.github/workflows/e2e-gcp.yml @@ -2656,6 +2656,7 @@ jobs: LAYOUT: WithoutNAT KUBERNETES_VERSION: "1.31" EVENT_LABEL: ${{ github.event.label.name }} + WERF_ENV: "${{ fromJson(inputs.test_config).edition || 'FE'}}" runs-on: [self-hosted, e2e-common] steps: @@ -2809,16 +2810,21 @@ jobs: SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}" fi + # Add edition name for non-FE tests on branch + if [[ -n ${WERF_ENV} && ${WERF_ENV} != "FE" ]]; then + IMAGE_EDITION=$(echo ${WERF_ENV} | tr '[:upper:]' '[:lower:]') + fi + # Prepare initial image tag for deploy/deckhouse to test switching from previous release. INITIAL_IMAGE_TAG= if [[ -n ${INITIAL_REF_SLUG} ]] ; then - INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} fi # Prepare image tag for deploy/deckhouse (DECKHOUSE_IMAGE_TAG option in testing/cloud_layouts/script.sh). # CI_COMMIT_REF_SLUG is a 'prNUM' for dev branches or 'main' for default branch. # Use it as image tag. Add suffix to not overlap with PRs in main repo. - IMAGE_TAG=${CI_COMMIT_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + IMAGE_TAG=${CI_COMMIT_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} INSTALL_IMAGE_NAME= if [[ -n ${CI_COMMIT_BRANCH} ]]; then diff --git a/.github/workflows/e2e-openstack.yml b/.github/workflows/e2e-openstack.yml index 7967e844c..0094a793c 100644 --- a/.github/workflows/e2e-openstack.yml +++ b/.github/workflows/e2e-openstack.yml @@ -2656,6 +2656,7 @@ jobs: LAYOUT: Standard KUBERNETES_VERSION: "1.31" EVENT_LABEL: ${{ github.event.label.name }} + WERF_ENV: "${{ fromJson(inputs.test_config).edition || 'FE'}}" runs-on: [self-hosted, e2e-common] steps: @@ -2809,16 +2810,21 @@ jobs: SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}" fi + # Add edition name for non-FE tests on branch + if [[ -n ${WERF_ENV} && ${WERF_ENV} != "FE" ]]; then + IMAGE_EDITION=$(echo ${WERF_ENV} | tr '[:upper:]' '[:lower:]') + fi + # Prepare initial image tag for deploy/deckhouse to test switching from previous release. INITIAL_IMAGE_TAG= if [[ -n ${INITIAL_REF_SLUG} ]] ; then - INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} fi # Prepare image tag for deploy/deckhouse (DECKHOUSE_IMAGE_TAG option in testing/cloud_layouts/script.sh). # CI_COMMIT_REF_SLUG is a 'prNUM' for dev branches or 'main' for default branch. # Use it as image tag. Add suffix to not overlap with PRs in main repo. - IMAGE_TAG=${CI_COMMIT_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + IMAGE_TAG=${CI_COMMIT_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} INSTALL_IMAGE_NAME= if [[ -n ${CI_COMMIT_BRANCH} ]]; then diff --git a/.github/workflows/e2e-static.yml b/.github/workflows/e2e-static.yml index 84c8d0598..dc1a59930 100644 --- a/.github/workflows/e2e-static.yml +++ b/.github/workflows/e2e-static.yml @@ -2656,6 +2656,7 @@ jobs: LAYOUT: Static KUBERNETES_VERSION: "1.31" EVENT_LABEL: ${{ github.event.label.name }} + WERF_ENV: "${{ fromJson(inputs.test_config).edition || 'FE'}}" runs-on: [self-hosted, e2e-common] steps: @@ -2809,16 +2810,21 @@ jobs: SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}" fi + # Add edition name for non-FE tests on branch + if [[ -n ${WERF_ENV} && ${WERF_ENV} != "FE" ]]; then + IMAGE_EDITION=$(echo ${WERF_ENV} | tr '[:upper:]' '[:lower:]') + fi + # Prepare initial image tag for deploy/deckhouse to test switching from previous release. INITIAL_IMAGE_TAG= if [[ -n ${INITIAL_REF_SLUG} ]] ; then - INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} fi # Prepare image tag for deploy/deckhouse (DECKHOUSE_IMAGE_TAG option in testing/cloud_layouts/script.sh). # CI_COMMIT_REF_SLUG is a 'prNUM' for dev branches or 'main' for default branch. # Use it as image tag. Add suffix to not overlap with PRs in main repo. - IMAGE_TAG=${CI_COMMIT_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + IMAGE_TAG=${CI_COMMIT_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} INSTALL_IMAGE_NAME= if [[ -n ${CI_COMMIT_BRANCH} ]]; then diff --git a/.github/workflows/e2e-vcd.yml b/.github/workflows/e2e-vcd.yml index 06996257f..27921f076 100644 --- a/.github/workflows/e2e-vcd.yml +++ b/.github/workflows/e2e-vcd.yml @@ -2736,6 +2736,7 @@ jobs: LAYOUT: Standard KUBERNETES_VERSION: "1.31" EVENT_LABEL: ${{ github.event.label.name }} + WERF_ENV: "${{ fromJson(inputs.test_config).edition || 'FE'}}" runs-on: [self-hosted, e2e-common] steps: @@ -2889,16 +2890,21 @@ jobs: SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}" fi + # Add edition name for non-FE tests on branch + if [[ -n ${WERF_ENV} && ${WERF_ENV} != "FE" ]]; then + IMAGE_EDITION=$(echo ${WERF_ENV} | tr '[:upper:]' '[:lower:]') + fi + # Prepare initial image tag for deploy/deckhouse to test switching from previous release. INITIAL_IMAGE_TAG= if [[ -n ${INITIAL_REF_SLUG} ]] ; then - INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} fi # Prepare image tag for deploy/deckhouse (DECKHOUSE_IMAGE_TAG option in testing/cloud_layouts/script.sh). # CI_COMMIT_REF_SLUG is a 'prNUM' for dev branches or 'main' for default branch. # Use it as image tag. Add suffix to not overlap with PRs in main repo. - IMAGE_TAG=${CI_COMMIT_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + IMAGE_TAG=${CI_COMMIT_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} INSTALL_IMAGE_NAME= if [[ -n ${CI_COMMIT_BRANCH} ]]; then diff --git a/.github/workflows/e2e-vsphere.yml b/.github/workflows/e2e-vsphere.yml index fb4104485..756308fb8 100644 --- a/.github/workflows/e2e-vsphere.yml +++ b/.github/workflows/e2e-vsphere.yml @@ -2676,6 +2676,7 @@ jobs: LAYOUT: Standard KUBERNETES_VERSION: "1.31" EVENT_LABEL: ${{ github.event.label.name }} + WERF_ENV: "${{ fromJson(inputs.test_config).edition || 'FE'}}" runs-on: [self-hosted, e2e-vsphere] steps: @@ -2829,16 +2830,21 @@ jobs: SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}" fi + # Add edition name for non-FE tests on branch + if [[ -n ${WERF_ENV} && ${WERF_ENV} != "FE" ]]; then + IMAGE_EDITION=$(echo ${WERF_ENV} | tr '[:upper:]' '[:lower:]') + fi + # Prepare initial image tag for deploy/deckhouse to test switching from previous release. INITIAL_IMAGE_TAG= if [[ -n ${INITIAL_REF_SLUG} ]] ; then - INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} fi # Prepare image tag for deploy/deckhouse (DECKHOUSE_IMAGE_TAG option in testing/cloud_layouts/script.sh). # CI_COMMIT_REF_SLUG is a 'prNUM' for dev branches or 'main' for default branch. # Use it as image tag. Add suffix to not overlap with PRs in main repo. - IMAGE_TAG=${CI_COMMIT_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + IMAGE_TAG=${CI_COMMIT_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} INSTALL_IMAGE_NAME= if [[ -n ${CI_COMMIT_BRANCH} ]]; then diff --git a/.github/workflows/e2e-yandex-cloud.yml b/.github/workflows/e2e-yandex-cloud.yml index bbcdfa0c6..e69742968 100644 --- a/.github/workflows/e2e-yandex-cloud.yml +++ b/.github/workflows/e2e-yandex-cloud.yml @@ -2696,6 +2696,7 @@ jobs: LAYOUT: WithoutNAT KUBERNETES_VERSION: "1.31" EVENT_LABEL: ${{ github.event.label.name }} + WERF_ENV: "${{ fromJson(inputs.test_config).edition || 'FE'}}" runs-on: [self-hosted, e2e-common] steps: @@ -2849,16 +2850,21 @@ jobs: SEMVER_REGISTRY_PATH="${GHA_TEST_REGISTRY_PATH}" fi + # Add edition name for non-FE tests on branch + if [[ -n ${WERF_ENV} && ${WERF_ENV} != "FE" ]]; then + IMAGE_EDITION=$(echo ${WERF_ENV} | tr '[:upper:]' '[:lower:]') + fi + # Prepare initial image tag for deploy/deckhouse to test switching from previous release. INITIAL_IMAGE_TAG= if [[ -n ${INITIAL_REF_SLUG} ]] ; then - INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + INITIAL_IMAGE_TAG=${INITIAL_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} fi # Prepare image tag for deploy/deckhouse (DECKHOUSE_IMAGE_TAG option in testing/cloud_layouts/script.sh). # CI_COMMIT_REF_SLUG is a 'prNUM' for dev branches or 'main' for default branch. # Use it as image tag. Add suffix to not overlap with PRs in main repo. - IMAGE_TAG=${CI_COMMIT_REF_SLUG}${REPO_SUFFIX:+-${REPO_SUFFIX}} + IMAGE_TAG=${CI_COMMIT_REF_SLUG}${IMAGE_EDITION:+-${IMAGE_EDITION}}${REPO_SUFFIX:+-${REPO_SUFFIX}} INSTALL_IMAGE_NAME= if [[ -n ${CI_COMMIT_BRANCH} ]]; then