fix(ci): yq arm64 binary for deploy-gitops on Apple Silicon VM
This commit is contained in:
@@ -77,7 +77,12 @@ jobs:
|
|||||||
git config user.email "ci-bot@sova.local"
|
git config user.email "ci-bot@sova.local"
|
||||||
git config user.name "sova-ci"
|
git config user.name "sova-ci"
|
||||||
MAX_RETRIES=5
|
MAX_RETRIES=5
|
||||||
curl -sSL -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_linux_amd64
|
case "$(uname -m)" in
|
||||||
|
x86_64|amd64) YQ_ARCH=amd64 ;;
|
||||||
|
aarch64|arm64) YQ_ARCH=arm64 ;;
|
||||||
|
*) echo "Unsupported arch: $(uname -m)"; exit 1 ;;
|
||||||
|
esac
|
||||||
|
curl -sSL -o /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_linux_${YQ_ARCH}"
|
||||||
chmod +x /usr/local/bin/yq
|
chmod +x /usr/local/bin/yq
|
||||||
for attempt in $(seq 1 $MAX_RETRIES); do
|
for attempt in $(seq 1 $MAX_RETRIES); do
|
||||||
git pull --rebase "${REPO_URL}" main
|
git pull --rebase "${REPO_URL}" main
|
||||||
|
|||||||
Reference in New Issue
Block a user