release: name the image by the public registry host, not the internal server url
Gates / frontend (push) Successful in 45s
Gates / package (push) Successful in 3m52s
Gates / container (push) Successful in 2m18s
CI / gates (push) Successful in 12m35s
Gates / test-aarch64 (push) Successful in 4m26s
Gates / frontend (push) Successful in 47s
Release / guard (push) Successful in 1m16s
Gates / test (push) Successful in 1m9s
Gates / package (push) Successful in 31s
Gates / container (push) Successful in 34s
Release / gates (push) Successful in 7m29s
Release / publish (push) Successful in 5m15s
Gates / test (push) Successful in 1m11s
Gates / test-aarch64 (push) Successful in 4m28s
Gates / frontend (push) Successful in 45s
Gates / package (push) Successful in 3m52s
Gates / container (push) Successful in 2m18s
CI / gates (push) Successful in 12m35s
Gates / test-aarch64 (push) Successful in 4m26s
Gates / frontend (push) Successful in 47s
Release / guard (push) Successful in 1m16s
Gates / test (push) Successful in 1m9s
Gates / package (push) Successful in 31s
Gates / container (push) Successful in 34s
Release / gates (push) Successful in 7m29s
Release / publish (push) Successful in 5m15s
Gates / test (push) Successful in 1m11s
Gates / test-aarch64 (push) Successful in 4m28s
This commit is contained in:
@@ -52,6 +52,13 @@ concurrency:
|
|||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
# The public registry host, which names the image. Inside the cluster
|
||||||
|
# GITHUB_SERVER_URL is http://gitea:3000: docker refuses to log in to a
|
||||||
|
# plain-http registry, and an image named gitea:3000/... is unpullable from
|
||||||
|
# anywhere that matters. The manifest probe still uses the internal URL —
|
||||||
|
# same registry, cheaper route. Found by dry-run attempt 4.
|
||||||
|
REGISTRY_HOST: "git.mial.net"
|
||||||
|
|
||||||
ZIG_VERSION: "0.16.0"
|
ZIG_VERSION: "0.16.0"
|
||||||
# Exact patch, not a floating "24" (ruling 12).
|
# Exact patch, not a floating "24" (ruling 12).
|
||||||
NODE_VERSION: "24.19.0"
|
NODE_VERSION: "24.19.0"
|
||||||
|
|||||||
+12
-1
@@ -1361,7 +1361,18 @@ fn resolve(ctx: *Ctx) !void {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const server = std.mem.trimEnd(u8, ctx.require("GITHUB_SERVER_URL"), "/");
|
const server = std.mem.trimEnd(u8, ctx.require("GITHUB_SERVER_URL"), "/");
|
||||||
const registry = registryHost(server);
|
// The registry host names the image, so it must be the PUBLIC host: inside
|
||||||
|
// the cluster GITHUB_SERVER_URL is http://gitea:3000, and an image called
|
||||||
|
// gitea:3000/... is unpullable outside and unloggable-into by docker,
|
||||||
|
// which refuses plain http. The workflow pins REGISTRY_HOST explicitly;
|
||||||
|
// the derivation below is the fallback for a deployment whose server URL
|
||||||
|
// is already public. The manifest probe stays on GITHUB_SERVER_URL — same
|
||||||
|
// registry, internal route, no TLS dependency in this tool.
|
||||||
|
const registry = reg: {
|
||||||
|
const explicit = ctx.get("REGISTRY_HOST");
|
||||||
|
if (explicit.len != 0) break :reg explicit;
|
||||||
|
break :reg registryHost(server);
|
||||||
|
};
|
||||||
const repository = lowercase(ctx.arena, ctx.require("GITHUB_REPOSITORY"));
|
const repository = lowercase(ctx.arena, ctx.require("GITHUB_REPOSITORY"));
|
||||||
const image_name = ctx.fmt("{s}/{s}", .{ registry, repository });
|
const image_name = ctx.fmt("{s}/{s}", .{ registry, repository });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user