Files
infrastructure/.gitea/workflows/deploy.yml
T
blandClaude Opus 5.5 a76e6321ee 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
2026-11-07 16:29:55 +01:00

33 lines
1.0 KiB
YAML

# 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, 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 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/**
- gdo/**
- kanidm/server.toml.tpl
- nats/nats.conf.tpl
- .gitea/workflows/deploy.yml
workflow_dispatch:
jobs:
deploy:
runs-on: fish
steps:
- name: Pull and bring the stack up
run: sudo /usr/local/bin/deploy-tomtervel