mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 01:01:26 +08:00
12 lines
338 B
Bash
Executable file
12 lines
338 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
VERSION=`jq -r ".version" package.json`
|
|
SERIES=${VERSION:0:4}-latest
|
|
|
|
cat package.json | grep -v electron > server-package.json
|
|
|
|
sudo docker build -t zadam/trilium:$VERSION --network host -t zadam/trilium:$SERIES .
|
|
|
|
if [[ $VERSION != *"beta"* ]]; then
|
|
sudo docker tag zadam/trilium:$VERSION zadam/trilium:latest
|
|
fi
|