mirror of
https://github.com/zadam/trilium.git
synced 2025-01-27 01:18:40 +08:00
create "series" docker tag
This commit is contained in:
parent
f7dd3558a7
commit
91e3eb8ae7
3 changed files with 12 additions and 3 deletions
|
@ -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 .
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "trilium",
|
||||
"version": "0.31.1-beta",
|
||||
"version": "0.31.2-beta",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in a new issue