add container builds

This commit is contained in:
2023-08-29 21:34:00 +02:00
parent 1a823ca2f6
commit af608742fb
3 changed files with 23 additions and 0 deletions

12
rust/build-container.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -o nounset
set -o pipefail
rustup target add x86_64-unknown-linux-musl
cargo build --target x86_64-unknown-linux-musl --release
docker build -t packager:latest .
docker tag packager:latest packager:$(git rev-parse HEAD)
docker tag packager:latest registry.hkoerber.de/packager:$(git rev-parse HEAD)