aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/build
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/build')
-rwxr-xr-xcontrib/build6
1 files changed, 6 insertions, 0 deletions
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" .