added deploy process

This commit is contained in:
2024-08-21 22:01:24 +02:00
parent 22c976ff21
commit 3947b3e0c8
4 changed files with 60 additions and 7 deletions

View File

@@ -1,13 +1,16 @@
#!/usr/bin/env bash
set -e
# 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}
# 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
APP_VERSION="latest"
else
APP_VERSION=${VERSIONINPUT}
fi
fi
# Get project commit id and URL