add build script

This commit is contained in:
Kegan Myers 2023-07-23 01:51:06 -05:00
parent 813bdaa620
commit 707ff1e78b
2 changed files with 11 additions and 0 deletions

View file

@ -1,2 +1,3 @@
.dockerignore
Dockerfile
build.sh

10
build.sh Executable file
View file

@ -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}"