Skip to content

Commit ed4f67b

Browse files
committed
ci(integrations): fix kind version on alt trigger
Signed-off-by: Árpád Csepi <[email protected]>
1 parent a88f01d commit ed4f67b

File tree

1 file changed

+29
-12
lines changed

1 file changed

+29
-12
lines changed

.github/workflows/test-integrations.yaml

+29-12
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,12 @@ on:
99
pull_request:
1010
workflow_dispatch:
1111
inputs:
12-
destroy-cluster:
13-
description: 'Destroy test cluster'
14-
required: false
15-
default: true
16-
type: boolean
17-
python-version:
18-
description: 'Python version to install'
19-
required: false
20-
default: '3.12'
2112
kind-version:
2213
description: 'Kind version'
2314
required: false
24-
default: '0.24.0'
15+
16+
env:
17+
KIND_VERSION: "0.24.0"
2518

2619
jobs:
2720
run-tests-gateway:
@@ -52,10 +45,22 @@ jobs:
5245
python: true
5346
go: false
5447

48+
- name: Set KinD version
49+
id: set-kind-version
50+
shell: bash
51+
if: github.event_name == "workflow_dispatch"
52+
run: |
53+
if [ "${{ inputs.kind-version }}" != "" ]; then
54+
KIND_VERSION="${{ inputs.kind-version }}"
55+
fi
56+
57+
echo "Set KinD version to: $KIND_VERSION"
58+
echo "KIND_VERSION=$KIND_VERSION" >> "$GITHUB_ENV"
59+
5560
- name: Setup K8S Tools
5661
uses: ./.github/actions/setup-k8s
5762
with:
58-
kind-version: ${{ inputs.kind-version }}
63+
kind-version: ${{ env.KIND_VERSION }}
5964

6065
- name: Create kind cluster
6166
run: task integrations:kind:create
@@ -103,10 +108,22 @@ jobs:
103108
python: true
104109
go: false
105110

111+
- name: Set KinD version
112+
id: set-kind-version
113+
shell: bash
114+
if: github.event_name == "workflow_dispatch"
115+
run: |
116+
if [ "${{ inputs.kind-version }}" != "" ]; then
117+
KIND_VERSION="${{ inputs.kind-version }}"
118+
fi
119+
120+
echo "Set KinD version to: $KIND_VERSION"
121+
echo "KIND_VERSION=$KIND_VERSION" >> "$GITHUB_ENV"
122+
106123
- name: Setup K8S Tools
107124
uses: ./.github/actions/setup-k8s
108125
with:
109-
kind-version: ${{ inputs.kind-version }}
126+
kind-version: ${{ env.KIND_VERSION }}
110127

111128
- name: Create kind cluster
112129
run: task integrations:kind:create

0 commit comments

Comments
 (0)