about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2022-04-26 10:54:40 -0500
committerStarfall <us@starfall.systems>2022-04-26 10:54:40 -0500
commit01841cdb98ce2d13a5bed9f658fc43bfd552bc01 (patch)
treeba5e70cba393b34f57ff6a9c2c0e089e0054376a
parentfd98fd86128a5cea302b8496b6c7d5464ec1958a (diff)
add build script
-rwxr-xr-xbuild.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 000000000..4c252d73f
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env zsh
+commit=`git rev-parse HEAD | cut -c -7`
+echo $commit
+
+yarn install
+systemctl start docker
+docker build --build-arg SOURCE_COMMIT=$commit --tag pluralcafe/mastodon:edge .
+
+echo 'Docker image built. Push to Docker Hub with `docker push pluralcafe/mastodon:edge`.'