chore(ci): master deployt Starter nicht (exit 0 bei Platzhaltern)
deploy to production / deploy (push) Successful in 46s
deploy to production / deploy (push) Successful in 46s
This commit is contained in:
@@ -11,6 +11,12 @@ set -o allexport
|
||||
. ./api/config.yml.env
|
||||
set +o allexport
|
||||
|
||||
# Starter template: never deploy master to production (placeholders still present)
|
||||
if [ "${PROJECT_NAME:-}" = "__PROJECT_NAME__" ] || [[ "${PRODUCTION_PATH:-}" == *"_CUSTOMER_ID_"* ]] || [ "${LIVE_URL:-}" = "https://www" ]; then
|
||||
echo "ci-deploy: starter template detected (PROJECT_NAME=${PROJECT_NAME:-?}), skipping production deploy."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Validate required env vars
|
||||
for var in RSYNC_USER RSYNC_PASS RSYNC_HOST RSYNC_PORT; do
|
||||
if [ -z "${!var:-}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user