mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 01:01:26 +08:00
16 lines
298 B
Bash
Executable file
16 lines
298 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [[ $# -eq 0 ]] ; then
|
|
echo "Missing argument of new version"
|
|
exit 1
|
|
fi
|
|
|
|
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
|
|
fi
|