Skip to content

Build your personal knowledge base with Trilium Notes

create "series" docker tag

zadam91e3eb8ae7d6
diff --git a/bin/build-docker.sh b/bin/build-docker.sh
index 1ab0b7f869..fff750404d 100755
--- a/bin/build-docker.sh
+++ b/bin/build-docker.sh
@@ -1,5 +1,10 @@
#!/usr/bin/env bash
VERSION=`jq -r ".version" package.json`
+SERIES=${VERSION:0:4}-latest
-sudo docker build -t zadam/trilium:$VERSION .
\ No newline at end of file
+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
diff --git a/bin/push-docker-image.sh b/bin/push-docker-image.sh
index 1da48d2dbc..238b3bf7dc 100755
--- a/bin/push-docker-image.sh
+++ b/bin/push-docker-image.sh
@@ -5,7 +5,11 @@ if [[ $# -eq 0 ]] ; then
exit 1
fi
-sudo docker push zadam/trilium:$1
+VERSION=$1
+SERIES=${VERSION:0:4}-latest
+
+sudo docker push zadam/trilium:$VERSION
+sudo docker push zadam/trilium:$SERIES
if [[ $1 != *"beta"* ]]; then
sudo docker push zadam/trilium:latest
diff --git a/package-lock.json b/package-lock.json
index a087b1d178..78fb866293 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "trilium",
- "version": "0.31.1-beta",
+ "version": "0.31.2-beta",
"lockfileVersion": 1,
"requires": true,
"dependencies": {