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