From e6359a9ceb5fba89ab0d152ce6ead2da7b8afa57 Mon Sep 17 00:00:00 2001 From: memdmp Date: Fri, 3 Jan 2025 01:03:27 +0100 Subject: feat: a sensible setup, for once --- contrib/build | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 contrib/build (limited to 'contrib/build') diff --git a/contrib/build b/contrib/build new file mode 100755 index 0000000..f071a5d --- /dev/null +++ b/contrib/build @@ -0,0 +1,6 @@ +#!/bin/zsh +set -eax +IMG="${IMG:-"docker.io/memdmp/cgit:${TAG:-"local-build"}"}" +! podman container exists cgit >/dev/null 2>/dev/null || podman container rm cgit +! podman image exists "$IMG" >/dev/null 2>/dev/null || podman image rm "$IMG" +podman build -t "$IMG" . -- cgit v1.2.3