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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user