From 707ff1e78bf3f177eecd4a203ecc12d83b98431c Mon Sep 17 00:00:00 2001 From: Kegan Myers Date: Sun, 23 Jul 2023 01:51:06 -0500 Subject: [PATCH] add build script --- .dockerignore | 1 + build.sh | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100755 build.sh diff --git a/.dockerignore b/.dockerignore index fd2f2d2..e8482c5 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ .dockerignore Dockerfile +build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..882b1b3 --- /dev/null +++ b/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -Eeuxo pipefail + +WWW_COMMIT=$(git rev-parse HEAD) +WWW_IMAGE="registry.nrd.li/nrdli/www:${AKKOMA_COMMIT}" + +docker build \ + -t "${WWW_IMAGE}" \ + . +docker push "${WWW_IMAGE}"