Skip to content

Commit fa2208a

Browse files
authored
Merge pull request #4 from potiuk/fix/asf-publish-hostname
Fix ASF publish: drop forbidden hostname so magpie.apache.org is inferred
2 parents c8a5d47 + 882ed09 commit fa2208a

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎.asf.yaml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
# https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features
33
#
44
# The `github:` block below is applied from the default branch (main).
5-
# The `publish:` block is what serves the website: ASF infra publishes the
6-
# branch named in `whoami` to the given hostname. CI builds the site and
5+
# The `publish:` block is what serves the website: CI builds the site and
76
# force-pushes the generated output (this file included) to the `publish`
8-
# branch, where `whoami: publish` matches and the site goes live at
9-
# https://magpie.apache.org/. On `main`, `whoami` does not match the branch
10-
# name, so nothing is published from here.
7+
# branch. The `.asf.yaml` on that branch carries `whoami: publish`, which
8+
# matches the branch name (the asfyaml multi-tenancy guard), so ASF infra
9+
# publishes it. The hostname is INFERRED from the repository name
10+
# (magpie-site -> magpie.apache.org) and must NOT be set explicitly: asfyaml
11+
# forbids naming your own $project.apache.org via the `hostname` field
12+
# ("It has to be inferred to prevent abuse").
1113

1214
github:
1315
description: "Website for Apache Magpie — agent-assisted repository maintainership and development."
@@ -22,4 +24,3 @@ github:
2224

2325
publish:
2426
whoami: publish
25-
hostname: magpie.apache.org

‎README.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,13 @@ The site is published by **ASF infrastructure**, not GitHub Pages. On every push
107107
```yaml
108108
publish:
109109
whoami: publish
110-
hostname: magpie.apache.org
111110
```
112111
113-
Production URL: **[magpie.apache.org](https://magpie.apache.org/)** (served at the apex root).
112+
ASF infra serves the `publish` branch at the project's inferred hostname — `magpie-site` → **[magpie.apache.org](https://magpie.apache.org/)** (served at the apex root). The hostname must **not** be set explicitly via a `hostname:` field; asfyaml forbids naming your own `$project.apache.org` ("it has to be inferred to prevent abuse"), and doing so stops the site from publishing.
114113

115114
The site is built with `base: '/'` so all links and assets resolve against the apex domain. Set `SITE_BASE` / `SITE_URL` to preview under a subpath (e.g. GitHub Pages).
116115

117-
> One-time infra setup (outside this repo): the `magpie.apache.org` hostname and its TLS must be registered with ASF Infra, and the `publish` branch created on first CI run.
116+
> One-time infra setup (outside this repo): for a brand-new project, ASF Infra may still need to provision DNS/TLS for `magpie.apache.org` before the inferred hostname resolves.
118117

119118
## License
120119

0 commit comments

Comments
 (0)