dns.yml runs DNSControl on kasse's host runner with the repo secret CLOUDFLARE_API_TOKEN: check and preview on any push touching dns/, push only from Run workflow on main, so a merge is never the cutover. Push events only; the repo is public. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
This commit is contained in:
2 files changed
+74
-2
No files matched your search
+13
-2
@@ -5,6 +5,16 @@ The zone is `dnsconfig.js`, applied to Cloudflare with
|
||||
the file with the live zone, so it can be run by anyone with the token,
|
||||
from any machine.
|
||||
|
||||
## From CI
|
||||
|
||||
`.gitea/workflows/dns.yml` runs on kasse's host runner. Every push that
|
||||
touches `dns/`, on any branch, runs `check` and `preview`: the run's log
|
||||
is the diff, and nothing changes. Applying it is a person pressing
|
||||
**Actions -> dns -> Run workflow** on `main`, so merging is never the
|
||||
cutover by accident. The token is the repo secret `CLOUDFLARE_API_TOKEN`.
|
||||
|
||||
## By hand
|
||||
|
||||
```sh
|
||||
paru -S dnscontrol
|
||||
cd dns
|
||||
@@ -48,8 +58,9 @@ Nothing about Zoho's MX should appear.
|
||||
|
||||
1. On kasse, `kasse-dkim-tomtervel.sh` makes the vel's signing key and
|
||||
prints its public half. Put it in `KASSE_DKIM`.
|
||||
2. `dnscontrol push`. The apex leaves the old website at this moment.
|
||||
3. `.env` here: `PORTAL_HOST=tomtervel.no`, `ID_HOST=id.tomtervel.no`,
|
||||
2. Actions -> dns -> Run workflow on main (or `dnscontrol push`). The apex
|
||||
leaves the old website at this moment.
|
||||
3. A commit to `.env`: `PORTAL_HOST=tomtervel.no`, `ID_HOST=id.tomtervel.no`,
|
||||
`CHAT_HOST=chat.tomtervel.no`, and the Caddy blocks in
|
||||
`host-caddy/` on kasse; Kanidm's domain is renamed before anyone
|
||||
but the first person has a passkey.
|
||||
|
||||
Reference in new issue
Block a user