Group deployment files by deployment method

This commit is contained in:
2026-11-30 18:27:11 +08:00
parent 9869a9966c
commit 69513d9ffb
11 changed files with 15 additions and 114 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
output="$PWD/target/bedrock-release"
mkdir -p "$output"
docker run --rm \
--mount "type=bind,source=$PWD,target=/work,readonly" \
--mount "type=bind,source=$output,target=/out" \
-w /work -e CARGO_TARGET_DIR=/tmp/bedrock-target \
rust:1.91.1-bookworm sh -ec '
cargo build --locked --release --bin bedrock
install -m 755 /tmp/bedrock-target/release/bedrock /out/bedrock
'