From 202baab18cf97619495b606f1959c080150b124f Mon Sep 17 00:00:00 2001 From: Eugene Blikh Date: Tue, 26 May 2026 00:29:31 +0300 Subject: [PATCH] publish.yml: override hut pages origin to public URL The srht.bigb.es OAuth worker writes the internal docker-compose hostname (http://pages:5112) into ~/.config/hut/config, which is unreachable from outside the cluster. sed the config to use the public origin (https://pages.srht.bigb.es) before publish. This is a srht admin-side gotcha; only `builds` and `meta` get public origins in the worker config, the other services (pages/git/hub/todo/paste) all keep internal hostnames. --- .builds/publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.builds/publish.yml b/.builds/publish.yml index 5112df8dc45778d2be4bd668a1a40d9f3e681542..74fb5a36e84e0d59a1880e0389689077ef9516b9 100644 --- a/.builds/publish.yml +++ b/.builds/publish.yml @@ -102,6 +102,11 @@ tasks: cd /home/build/pages tar -czvf /home/build/site.tar.gz . - publish_pages: | + # The srht.bigb.es OAuth worker writes the per-service origin + # `http://pages:5112` (internal docker-compose hostname) into + # ~/.config/hut/config. Override with the public origin before + # hut runs, or it can't reach the API from outside the cluster. + sed -i 's|http://pages:5112|https://pages.srht.bigb.es|' ~/.config/hut/config hut pages publish -d "$PAGES_DOMAIN" -s "$PAGES_SUBPATH" /home/build/site.tar.gz - stage_artifacts: | # `artifacts:` paths resolve relative to /home/build. Copy the four