chore(infra): Gitea-Host auf git.hg-int.dev umstellen
Gitea läuft seit 2026-11-11 auf hivegrid-control (git.hg-int.dev); git.tool-ctrl.de wird abgeschaltet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c4701e5b37
commit
d09f79b673
56 files changed
+138
-138
No files matched your search
@@ -50,7 +50,7 @@ jobs:
|
||||
runs-on: toolctrl-deploy
|
||||
timeout-minutes: 90
|
||||
env:
|
||||
REGISTRY: git.tool-ctrl.de
|
||||
REGISTRY: git.hg-int.dev
|
||||
IMAGE_NAMESPACE: toolctrl-labs
|
||||
IMAGE_PREFIX: hivegrid
|
||||
DEPLOY_BUILDER_NAME: hivegrid-deploy-v0312-gc1
|
||||
@@ -93,7 +93,7 @@ jobs:
|
||||
echo "HIVEGRID_GITEA_HOST_IP must be a single IPv4 or IPv6 token"
|
||||
exit 1
|
||||
fi
|
||||
printf '%s git.tool-ctrl.de\n' "$HIVEGRID_GITEA_HOST_IP" >> /etc/hosts
|
||||
printf '%s git.hg-int.dev\n' "$HIVEGRID_GITEA_HOST_IP" >> /etc/hosts
|
||||
fi
|
||||
|
||||
MISSING_TOOLS=""
|
||||
@@ -322,7 +322,7 @@ jobs:
|
||||
sh -eu <<'HIVEGRID_BUILDKIT_HOST_OVERRIDE'
|
||||
HOSTS_TMP="$(mktemp)"
|
||||
trap 'rm -f "$HOSTS_TMP"' EXIT HUP INT TERM
|
||||
awk -v host="git.tool-ctrl.de" '
|
||||
awk -v host="git.hg-int.dev" '
|
||||
{
|
||||
rewritten = ""
|
||||
for (field = 1; field <= NF; field += 1) {
|
||||
@@ -337,9 +337,9 @@ jobs:
|
||||
}
|
||||
' /etc/hosts > "$HOSTS_TMP"
|
||||
cat "$HOSTS_TMP" > /etc/hosts
|
||||
printf '%s git.tool-ctrl.de\n' "$HIVEGRID_GITEA_HOST_IP" >> /etc/hosts
|
||||
BUILDKIT_HOST_COUNT="$(awk -v host="git.tool-ctrl.de" '{ for (field = 2; field <= NF; field += 1) if ($field == host) count += 1 } END { print count + 0 }' /etc/hosts)"
|
||||
BUILDKIT_EXACT_HOST_COUNT="$(awk -v host="git.tool-ctrl.de" -v ip="$HIVEGRID_GITEA_HOST_IP" '$1 == ip { for (field = 2; field <= NF; field += 1) if ($field == host) count += 1 } END { print count + 0 }' /etc/hosts)"
|
||||
printf '%s git.hg-int.dev\n' "$HIVEGRID_GITEA_HOST_IP" >> /etc/hosts
|
||||
BUILDKIT_HOST_COUNT="$(awk -v host="git.hg-int.dev" '{ for (field = 2; field <= NF; field += 1) if ($field == host) count += 1 } END { print count + 0 }' /etc/hosts)"
|
||||
BUILDKIT_EXACT_HOST_COUNT="$(awk -v host="git.hg-int.dev" -v ip="$HIVEGRID_GITEA_HOST_IP" '$1 == ip { for (field = 2; field <= NF; field += 1) if ($field == host) count += 1 } END { print count + 0 }' /etc/hosts)"
|
||||
if [ "$BUILDKIT_HOST_COUNT" -ne 1 ] || [ "$BUILDKIT_EXACT_HOST_COUNT" -ne 1 ]; then
|
||||
echo "BuildKit registry host override did not converge to exactly one validated mapping"
|
||||
exit 1
|
||||
|
||||
Reference in new issue
Block a user