trilium/bin/push-docker-image.sh

17 lines
283 B
Bash
Raw Normal View History

2018-06-11 03:06:52 +08:00
#!/usr/bin/env bash
if [[ $# -eq 0 ]] ; then
echo "Missing argument of new version"
exit 1
fi
2019-04-24 02:20:42 +08:00
VERSION=$1
SERIES=${VERSION:0:4}-latest
2021-04-24 17:39:59 +08:00
docker push zadam/trilium:$VERSION
docker push zadam/trilium:$SERIES
if [[ $1 != *"beta"* ]]; then
2021-04-24 17:39:59 +08:00
docker push zadam/trilium:latest
fi