fix: Update kubectl installation to use a fixed version instead of fetching stable version
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 1m9s

This commit is contained in:
masoodafar-web
2026-01-29 02:20:40 +03:30
parent 1c130b14e1
commit 8894e72a8e
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -20,8 +20,9 @@ jobs:
run: | run: |
apk add --no-cache git curl apk add --no-cache git curl
# Install kubectl # Install kubectl with fixed version (no need to fetch stable.txt)
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" KUBECTL_VERSION="v1.31.0"
curl -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl"
chmod +x kubectl chmod +x kubectl
mv kubectl /usr/local/bin/ mv kubectl /usr/local/bin/
+3 -2
View File
@@ -24,8 +24,9 @@ jobs:
run: | run: |
apk add --no-cache git curl apk add --no-cache git curl
# Install kubectl # Install kubectl with fixed version
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" KUBECTL_VERSION="v1.31.0"
curl -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl"
chmod +x kubectl chmod +x kubectl
mv kubectl /usr/local/bin/ mv kubectl /usr/local/bin/