omfg the ci
Deploy website on production server when committing on main / test (push) Failing after 8s

This commit is contained in:
bryanpedini committed 2026-02-01 19:11:20 +01:00
1 parent 50cd2ae16f
commit 94469a598b
1 file changed
+10 -7
+10 -7
View File
@@ -3,14 +3,17 @@ set -e
# Check if version is already provided
if [ -z "${APP_VERSION}" ]; then
# 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
if [ -t 0 ]; then # Interactive: prompt user
# 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
else # Non-interactive (CI): default to "latest"
APP_VERSION="latest"
else
APP_VERSION=${VERSIONINPUT}
fi
fi
# Get project commit id and URL