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
@@ -2319,7 +2319,7 @@ export function checkIsolatedDeployBuildKit(rootDir, content, analysis) {
|
||||
const validatedHostExitIndex = setupText.indexOf("exit 1", validatedHostIndex);
|
||||
const validatedHostEndIndex = setupText.indexOf("\n fi", validatedHostIndex);
|
||||
const builderExecIndex = setupText.indexOf("docker exec \\\n --env HIVEGRID_GITEA_HOST_IP=");
|
||||
const staleRemovalIndex = setupText.indexOf('awk -v host="git.tool-ctrl.de" \'', builderExecIndex);
|
||||
const staleRemovalIndex = setupText.indexOf('awk -v host="git.hg-int.dev" \'', builderExecIndex);
|
||||
const staleRemovalEndIndex = setupText.indexOf('\' /etc/hosts > "$HOSTS_TMP"', staleRemovalIndex);
|
||||
const staleRemovalText =
|
||||
staleRemovalIndex >= 0 && staleRemovalEndIndex > staleRemovalIndex
|
||||
@@ -2327,7 +2327,7 @@ export function checkIsolatedDeployBuildKit(rootDir, content, analysis) {
|
||||
: "";
|
||||
const replaceHostsIndex = setupText.indexOf('cat "$HOSTS_TMP" > /etc/hosts', staleRemovalEndIndex);
|
||||
const appendHostIndex = setupText.indexOf(
|
||||
'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',
|
||||
replaceHostsIndex
|
||||
);
|
||||
const hostCountIndex = setupText.indexOf('BUILDKIT_HOST_COUNT="$(awk ', appendHostIndex);
|
||||
@@ -2359,10 +2359,10 @@ export function checkIsolatedDeployBuildKit(rootDir, content, analysis) {
|
||||
/if\s*\(\s*rewritten\s*!=\s*""\s*\)\s*\{\s*print\s+rewritten/.test(staleRemovalText);
|
||||
const countsEveryHostToken =
|
||||
hostCountText.trim() ===
|
||||
'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_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)"';
|
||||
const countsOnlyTheValidatedHostToken =
|
||||
exactHostCountText.trim() ===
|
||||
'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)"';
|
||||
'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)"';
|
||||
const hostOverrideOrderIsSafe =
|
||||
requiredHostIndex >= 0 &&
|
||||
requiredHostIndex < requiredHostExitIndex &&
|
||||
@@ -2389,7 +2389,7 @@ export function checkIsolatedDeployBuildKit(rootDir, content, analysis) {
|
||||
if (configuresBuildKitRegistryHost) {
|
||||
passes.push(`${WORKFLOW_PATH}: isolated BuildKit replaces and verifies its validated registry host mapping`);
|
||||
} else {
|
||||
failures.push(`${WORKFLOW_PATH}: staging must require, validate, replace, and verify exactly one git.tool-ctrl.de mapping inside isolated BuildKit`);
|
||||
failures.push(`${WORKFLOW_PATH}: staging must require, validate, replace, and verify exactly one git.hg-int.dev mapping inside isolated BuildKit`);
|
||||
}
|
||||
|
||||
const quiescesHostContainer =
|
||||
|
||||
Reference in new issue
Block a user