#!/usr/bin/env bash
# `buildah`, but `buildah build` builds for linux/arm64: build-arm64.yml runs
# `just BUILDAH=.../buildah-arm64 build`, so the Justfile stays upstream's.
# On runner-x86-linux the arm64 steps run under QEMU user emulation.
if [[ ${1:-} == build ]]; then
  shift
  exec buildah build --platform linux/arm64 "$@"
fi
exec buildah "$@"
