irongit

Git hosting and a container registry in one Rust binary (axum + Astro)

irongit/build.sh
14 lines538 BBourne Again Shell (bash)
1#!/bin/sh
2# Production build: the server and the ig CLI, both x86_64 Linux.
3# The frontend is rebuilt without PUBLIC_HOT_RELOAD first: dev builds set it,
4# and whatever is in frontend/dist at compile time is what gets embedded.
5set -e
6
7cd "$(dirname "$0")"
8
9(cd frontend && bun install --frozen-lockfile && bun run build)
10cargo build --release -p irongit --no-default-features
11cargo build --release -p ig --target x86_64-unknown-linux-musl
12
13echo "server: target/release/irongit"
14echo "cli: target/x86_64-unknown-linux-musl/release/ig"