From 75db513bfc20d55552c92910d4aa856765400dd6 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Thu, 28 Apr 2022 21:21:41 +1000 Subject: [PATCH] ci(buildkite): add qemu registration for specific nodes (#3262) --- .buildkite/hooks/pre-command | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index e87bacebb..5fe7078c7 100755 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -10,6 +10,10 @@ if [[ "${BUILDKITE_LABEL}" == ":docker: Build Image [coverage]" ]]; then cp -R /buildkite/.pnpm-store . fi +if [[ "${BUILDKITE_STEP_KEY}" =~ build-deb-package-(arm64|armhf) && "${BUILDKITE_AGENT_NAME}" =~ sauron* ]]; then + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes +fi + if [[ "${BUILDKITE_LABEL}" =~ ":debian: Build Package" ]]; then buildkite-agent artifact download "authelia-linux-${ARCH}.tar.gz" . fi