Notes/bin/build-docker.sh
2024-05-28 19:41:51 +02:00

13 lines
284 B
Bash
Executable File

#!/usr/bin/env bash
VERSION='develop'
SERIES=${VERSION:0:4}-latest
cat package.json | grep -v electron > server-package.json
sudo docker build -t notes:$VERSION --network host -t notes:$SERIES .
if [[ $VERSION != *"beta"* ]]; then
sudo docker tag notes:$VERSION notes:latest
fi