Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -1,6 +1,6 @@
|
||||
// Single source of truth for infra strings asserted by verify-gitea-*-workflow.mjs.
|
||||
// Forks override the defaults by exporting TOOLCTRL_* env vars in their CI environment.
|
||||
// Default values match the canonical ToolCTRL Gitea deployment so the boilerplate's own
|
||||
// Forks override the defaults by exporting HIVEGRID_* env vars in their CI environment.
|
||||
// Default values match the canonical HiveGrid Gitea deployment so the boilerplate's own
|
||||
// CI passes without any env setup.
|
||||
|
||||
const envOr = (key, fallback) => {
|
||||
@@ -10,12 +10,12 @@ const envOr = (key, fallback) => {
|
||||
return trimmed ? trimmed : fallback;
|
||||
};
|
||||
|
||||
export const CI_RUNNER_LABEL = envOr("TOOLCTRL_CI_RUNNER", "toolctrl-ci");
|
||||
export const IMAGE_PREFIX = envOr("TOOLCTRL_IMAGE_PREFIX", "toolctrl");
|
||||
export const GIT_HOST = envOr("TOOLCTRL_GIT_HOST", "git.tool-ctrl.de");
|
||||
export const REGISTRY_NAMESPACE = envOr("TOOLCTRL_REGISTRY_NAMESPACE", "toolctrl-labs");
|
||||
export const DB_USER = envOr("TOOLCTRL_DB_USER", "toolctrl");
|
||||
export const DB_NAME = envOr("TOOLCTRL_DB_NAME", "toolctrl");
|
||||
export const CI_RUNNER_LABEL = envOr("HIVEGRID_CI_RUNNER", "toolctrl-ci");
|
||||
export const IMAGE_PREFIX = envOr("HIVEGRID_IMAGE_PREFIX", "hivegrid");
|
||||
export const GIT_HOST = envOr("HIVEGRID_GIT_HOST", "git.tool-ctrl.de");
|
||||
export const REGISTRY_NAMESPACE = envOr("HIVEGRID_REGISTRY_NAMESPACE", "toolctrl-labs");
|
||||
export const DB_USER = envOr("HIVEGRID_DB_USER", "hivegrid");
|
||||
export const DB_NAME = envOr("HIVEGRID_DB_NAME", "hivegrid");
|
||||
export const PREFLIGHT_DATABASE_URL = `postgresql://${DB_USER}:${DB_USER}@localhost:5432/${DB_NAME}?schema=public`;
|
||||
|
||||
export function dockerImageTag(target, tag = "smoke") {
|
||||
@@ -27,9 +27,9 @@ export function escapeRegex(value) {
|
||||
}
|
||||
|
||||
export const HOST_OVERRIDE_WRITE_PATTERN = new RegExp(
|
||||
`printf\\s+'%s ${escapeRegex(GIT_HOST)}\\\\n'\\s+"\\$TOOLCTRL_GITEA_HOST_IP"\\s+>>\\s+/etc/hosts`,
|
||||
`printf\\s+'%s ${escapeRegex(GIT_HOST)}\\\\n'\\s+"\\$HIVEGRID_GITEA_HOST_IP"\\s+>>\\s+/etc/hosts`,
|
||||
"g"
|
||||
);
|
||||
|
||||
export const HOST_OVERRIDE_VALIDATION_PATTERN =
|
||||
/node\s+-e\s+'process\.exit\(require\("node:net"\)\.isIP\(process\.env\.TOOLCTRL_GITEA_HOST_IP \|\| ""\) \? 0 : 1\)'/g;
|
||||
/node\s+-e\s+'process\.exit\(require\("node:net"\)\.isIP\(process\.env\.HIVEGRID_GITEA_HOST_IP \|\| ""\) \? 0 : 1\)'/g;
|
||||
Reference in new issue
Block a user