# 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