fixed a typo
Some checks failed
Build & Push Docker Images / build (push) Failing after 3s

This commit is contained in:
Thomas Faour 2025-08-11 18:34:22 -04:00
parent 2f37bc4c4a
commit b67720ac43

View File

@ -32,10 +32,11 @@ jobs:
if [ -z "$REG_HOST_RAW" ]; then echo "Missing GITEA_SERVER_URL/GITHUB_SERVER_URL"; exit 1; fi
REG_HOST="${REG_HOST_RAW#http://}"; REG_HOST="${REG_HOST#https://}"; REG_HOST="${REG_HOST%%/*}"
# Override if needed (set secret/env to git.thumeit.com[:port])
OVERRIDE="${{ secrets.GITEA_REGISTRY_HOST }}"; [ -z "$OVERRIDE" ] && OVERRIDE="${GITEA_REGISTRY_HOST}"
[ -z "$OVERRIDE" ] && OVERRIDE="${{ secrets.REGISTRY_HOST }}"
[ -z "$OVERRIDE" ] && OVERRIDE="${REGISTRY_HOST}"
if [ "$REG_HOST" = "gitea" ] && [ -n "$OVERRIDE" ]; then REG_HOST="$OVERRIDE"; fi
OVERRIDE="${{ secrets.GITEA_REGISTRY_HOST }}"
[ -z "${OVERRIDE:-}" ] && OVERRIDE="${GITEA_REGISTRY_HOST:-}"
[ -z "${OVERRIDE:-}" ] && OVERRIDE="${{ secrets.REGISTRY_HOST }}"
[ -z "${OVERRIDE:-}" ] && OVERRIDE="${REGISTRY_HOST:-}"
if [ "$REG_HOST" = "gitea" ] && [ -n "${OVERRIDE:-}" ]; then REG_HOST="$OVERRIDE"; fi
echo "owner=$OWNER" >> $GITHUB_OUTPUT
echo "repo=$REPO" >> $GITHUB_OUTPUT
echo "host=$REG_HOST" >> $GITHUB_OUTPUT