trilium/bin/build-docker.sh

13 lines
338 B
Bash
Raw Normal View History

2018-06-11 03:06:52 +08:00
#!/usr/bin/env bash
VERSION=`jq -r ".version" package.json`
2019-04-24 02:20:42 +08:00
SERIES=${VERSION:0:4}-latest
2018-06-11 03:06:52 +08:00
2019-10-16 03:53:46 +08:00
cat package.json | grep -v electron > server-package.json
2020-10-28 02:39:54 +08:00
sudo docker build -t zadam/trilium:$VERSION --network host -t zadam/trilium:$SERIES .
2019-04-24 02:20:42 +08:00
if [[ $VERSION != *"beta"* ]]; then
sudo docker tag zadam/trilium:$VERSION zadam/trilium:latest
fi