about summary refs log tree commit diff
path: root/build.sh
blob: 4c252d73f195f2693a3e5790bad052731a708d3e (plain) (blame)
1
2
3
4
5
6
7
8
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`.'