# Deploy from this repo: on the vel's own host, a runner registered # against prosjekt.klingenbergbygg.no with the label `tomtervel` # (the `runner` profile in compose.yml) checks out this repo and # brings the stack up. Rolling out a new portal version is a commit # that bumps PORTAL_RELEASE in .env.example and, on the host, in .env. # # Until that runner exists, this workflow queues and does nothing; # deploy by hand with `git pull && docker compose up -d --build` on # the host. name: deploy on: push: branches: [main] paths: - compose.yml - Caddyfile - portal/** - kanidm/server.toml.tpl - nats/nats.conf.tpl - .gitea/workflows/deploy.yml workflow_dispatch: jobs: deploy: runs-on: tomtervel steps: - name: Pull and restart run: | set -eu cd /srv/tomtervel/infrastructure git pull --ff-only sh bootstrap.sh