From 8894e72a8e3da8f06d114d8f4c7135ec0bd05f8c Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Thu, 29 Jan 2026 02:20:40 +0330 Subject: [PATCH] fix: Update kubectl installation to use a fixed version instead of fetching stable version --- .gitea/workflows/kub-deploy.yml | 5 +++-- .gitea/workflows/prod-deploy.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/kub-deploy.yml b/.gitea/workflows/kub-deploy.yml index d09af46..e505988 100644 --- a/.gitea/workflows/kub-deploy.yml +++ b/.gitea/workflows/kub-deploy.yml @@ -20,8 +20,9 @@ jobs: run: | apk add --no-cache git curl - # Install kubectl - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + # Install kubectl with fixed version (no need to fetch stable.txt) + KUBECTL_VERSION="v1.31.0" + curl -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" chmod +x kubectl mv kubectl /usr/local/bin/ diff --git a/.gitea/workflows/prod-deploy.yml b/.gitea/workflows/prod-deploy.yml index 122f72c..646e718 100644 --- a/.gitea/workflows/prod-deploy.yml +++ b/.gitea/workflows/prod-deploy.yml @@ -24,8 +24,9 @@ jobs: run: | apk add --no-cache git curl - # Install kubectl - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + # Install kubectl with fixed version + KUBECTL_VERSION="v1.31.0" + curl -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" chmod +x kubectl mv kubectl /usr/local/bin/