trilium/bin/build-docker.sh

11 lines
264 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-04-24 02:20:42 +08:00
sudo docker build -t zadam/trilium:$VERSION -t zadam/trilium:$SERIES .
if [[ $VERSION != *"beta"* ]]; then
sudo docker tag zadam/trilium:$VERSION zadam/trilium:latest
fi