From b7599b8acf5fb1b4db1f7856e795de685c79e3ac Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Thu, 16 Jul 2026 13:33:47 -0600 Subject: [PATCH] build: Added just recipe for building the multi-platform image --- justfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/justfile b/justfile index f7d6fd4..c41bf12 100644 --- a/justfile +++ b/justfile @@ -23,3 +23,16 @@ fmt: [arg('build_type', pattern="debug|release")] build build_type='debug': @cargo build {{ if build_type == "release" { "--release" } else { "" } }} + +# Build a multi-platform Docker image (linux/amd64 + linux/arm64). +# Requires an active buildx builder with multi-platform support and a registry login. +# version: must match an existing GitHub release tag (e.g. 0.7.4) +# image: registry/image name to push to (default: darkalex17/coyote) +[group: 'build'] +docker-build version image='darkalex17/coyote': + docker buildx build \ + --platform linux/amd64,linux/arm64 \ + --build-arg COYOTE_VERSION={{ version }} \ + --tag {{ image }}:{{ version }} \ + --tag {{ image }}:latest \ + .