Template updates (commit: 11682a3)
All checks were successful
Push to GitHub / mirror (push) Successful in 4s

This commit is contained in:
2025-12-31 23:14:22 +01:00
parent bdb0084f72
commit 7f09e3dae1
10 changed files with 313 additions and 0 deletions

29
version.sh Normal file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env bash
# Get version from user
read -p "Version [latest]: " VERSIONINPUT
# If version was not provided, use the latest commit short hash as version
if [ -z ${VERSIONINPUT} ]; then
APP_VERSION="latest"
else
APP_VERSION=${VERSIONINPUT}
fi
# Get docker push option from user
read -p "Docker push? [n]: " DOCKERPUSH
if [ -z ${DOCKERPUSH} ]; then
DOCKERPUSH=n
fi
# Create version tag (if provided)
if [ ! -z ${VERSIONINPUT} ]; then
git tag ${APP_VERSION}
fi
# Build the app
export APP_VERSION
make docker
# If wanted, push the docker image
if [ ${DOCKERPUSH} = "y" ]; then
make dockerpush
fi