From 6e6511e39c403da6bc1f90d8b36ad9afa0754c15 Mon Sep 17 00:00:00 2001 From: Martin Maslyankov Date: Fri, 3 Apr 2026 06:02:42 +0300 Subject: [PATCH] fix: detect architecture for yq download in deploy template The runner is ARM64 but yq was hardcoded to download amd64 binary. Auto-detect architecture to download the correct binary. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/deploy-k8s.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy-k8s.yaml b/.gitea/workflows/deploy-k8s.yaml index 57a62bc..6e2f538 100644 --- a/.gitea/workflows/deploy-k8s.yaml +++ b/.gitea/workflows/deploy-k8s.yaml @@ -37,7 +37,13 @@ jobs: - name: Install yq run: | set -euo pipefail - wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.44.1/yq_linux_amd64 + ARCH=$(uname -m) + case "$ARCH" in + aarch64|arm64) YQ_ARCH="arm64" ;; + x86_64|amd64) YQ_ARCH="amd64" ;; + *) YQ_ARCH="amd64" ;; + esac + wget -qO /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.44.1/yq_linux_${YQ_ARCH}" chmod +x /usr/local/bin/yq - name: Update image tag in cluster repo