chore: make version banner configurable and speed up login waits
All checks were successful
build-and-push / lint (push) Successful in 4s
build-and-push / sonar (push) Successful in 12s
build-and-push / docker (push) Successful in 1m10s

This commit is contained in:
nocci 2025-12-31 11:58:35 +00:00
parent 34e8d92b05
commit 133502ff94
4 changed files with 13 additions and 4 deletions

View file

@ -2,8 +2,13 @@
set -eo pipefail # exit on error, error on any fail in pipe (not just last cmd); add -x to print each cmd; see gist bash_strict_mode.md
echo "Version: https://github.com/vogler/free-games-claimer/tree/${COMMIT}"
[ ! -z $BRANCH ] && [ $BRANCH != "main" ] && echo "Branch: ${BRANCH}"
REPO_URL=${REPO_URL:-https://git.sky-net.it/nocci/free-games-claimer}
if [ -n "$COMMIT" ]; then
echo "Version: ${REPO_URL}/tree/${COMMIT}"
else
echo "Version: ${REPO_URL}"
fi
[ -n "$BRANCH" ] && [ "$BRANCH" != "main" ] && echo "Branch: ${BRANCH}"
echo "Build: $NOW"
# Ensure writable data dir for fgc when host bind-mount is owned by root.