aurora/.forgejo/buildah-arm64

11 lines
398 B
Text
Raw Normal View History

#!/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.
# A no-op on an arm64 runner; on an x86_64 one (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 "$@"