added docker build, closes #106

This commit is contained in:
azivner
2018-06-10 15:06:52 -04:00
parent c1b245c8b1
commit 4c8eeb2e6f
5 changed files with 46 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [[ $# -eq 0 ]] ; then
echo "Missing argument of new version"
exit 1
fi
docker build -t zadam/trilium:latest -t zadam/trilium:$1 .
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [[ $# -eq 0 ]] ; then
echo "Missing argument of new version"
exit 1
fi
docker push zadam/trilium:latest
docker push zadam/trilium:$1
+4
View File
@@ -75,4 +75,8 @@ github-release upload \
--name "$WINDOWS_X64_BUILD" \
--file "dist/$WINDOWS_X64_BUILD"
bin/build-docker.sh $VERSION
bin/push-docker-image.sh $VERSION
echo "Release finished!"