Skip to content

Commit

Permalink
[ci] rerender workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Portnov <[email protected]>
  • Loading branch information
Taior committed Nov 12, 2024
1 parent 026ce43 commit f22edc2
Show file tree
Hide file tree
Showing 18 changed files with 81 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-abort-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,7 @@ jobs:
# <template: e2e_run_job_template>
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-abort-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ jobs:
# <template: e2e_run_job_template>
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-abort-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ jobs:
# <template: e2e_run_job_template>
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-abort-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ jobs:
# <template: e2e_run_job_template>
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-abort-openstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ jobs:
# <template: e2e_run_job_template>
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-abort-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ jobs:
# <template: e2e_run_job_template>
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-abort-vcd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,7 @@ jobs:
# <template: e2e_run_job_template>
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-abort-vsphere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,7 @@ jobs:
# <template: e2e_run_job_template>
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-abort-yandex-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ jobs:
# <template: e2e_run_job_template>
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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/e2e-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/e2e-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/e2e-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2901,6 +2901,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:

Expand Down Expand Up @@ -3054,16 +3055,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=
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/e2e-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/e2e-openstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/e2e-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/e2e-vcd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/e2e-vsphere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/e2e-yandex-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f22edc2

Please sign in to comment.