What the stack is, in git: .env committed, the secrets on the host

.env is what `podman compose` reads as is: the hosts, the versions and
where the content comes from, so moving to tomtervel.no or bumping portal
is a commit that the deploy workflow brings up. Nothing in it is secret.

The secrets stay on kasse in secrets.env (the old .env's NATS password,
OAuth2 secret and first person), and what the scripts render from it.
gdo and the chat get NATS_URL from nats.env instead of interpolating
the password, and portal takes its URLs and content settings from .env
over portal.env, so a new host name reaches it without re-running
bootstrap.sh. The deploy script on kasse is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
This commit is contained in:
blandClaude Opus 5.5 committed 2026-11-07 16:29:55 +01:00
1 parent 213ef712c7
commit a76e6321ee
9 files changed
+125 -83

No files matched your search

+6 -4
View File
@@ -1,18 +1,20 @@
# Deploy this stack onto the host it runs on. A push that changes the
# compose file, a Dockerfile or a rendered config pulls and brings the
# stack up; a portal or gdo upgrade is a commit that bumps the version in
# .env.example and, on the host, in .env.
# stack up; a portal or gdo upgrade, or a new host name, is a commit that
# changes .env.
#
# Runs on kasse's host runner. It is not root: it may run one script,
# /usr/local/bin/deploy-tomtervel, which pulls this repo under
# /srv/tomtervel and runs `podman compose up -d --build` and nothing
# else. The .env on the host - the NATS password, the OAuth2 secret, the
# Kanidm token - is never in this repo and is not touched by a deploy.
# else. The secrets on the host - secrets.env, portal.env, nats.env,
# chat.env: the NATS password, the OAuth2 secret, the Kanidm token - are
# never in this repo and are not touched by a deploy.
name: deploy
on:
push:
branches: [main]
paths:
- .env
- compose.yml
- Caddyfile
- portal/**