diff --git a/bin/build-docker.sh b/bin/build-docker.sh index 1ab0b7f86..fff750404 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 1da48d2db..238b3bf7d 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 a087b1d17..78fb86629 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": {