Add dev containers, musl build
Some checks failed
/ publish (push) Waiting to run
/ verify (push) Has been cancelled

This commit is contained in:
Juno Takano 2026-03-07 17:28:47 -03:00
commit 1748dd2fb6
11 changed files with 115 additions and 49 deletions

23
containers/build.sh Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env sh
set -eu
suffix=$(printf '%s' "$1" | sed 's/.*\.//')
tag="en:$suffix"
if podman container exists "$tag"; then
podman stop --time 3 "$tag"
fi
if [ "$suffix" = 'debian-dev' ]; then
cp -v ../target/x86_64-unknown-linux-gnu/release/en en
elif [ "$suffix" = 'alpine-dev' ]; then
cp -v ../target/x86_64-unknown-linux-musl/release/en en
fi
podman build \
--tag "$tag" \
-f "Containerfile.$suffix"
if [ -f en ]; then
rm -v en
fi