Files
Gebos/.gitea/workflows/deploy.yml
T
Lars Nolden e1b3017fb7
check / flake-check (push) Successful in 18s
deploy / deploy (push) Failing after 18s
test deploy
2026-06-30 18:11:23 +02:00

34 lines
1.2 KiB
YAML

name: deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: nixos
steps:
- uses: actions/checkout@v4
- name: Setup deploy SSH key
run: |
mkdir -p ~/.ssh
# Dedicated key file so we never overwrite the runner user's own key.
# nix/deploy.nix pins this via `-i ~/.ssh/gebos_deploy`.
install -m 600 /dev/stdin ~/.ssh/gebos_deploy <<< "${{ secrets.DEPLOY_SSH_KEY }}"
ssh-keyscan -H db.gebos.online app.gebos.online ingest.gebos.online >> ~/.ssh/known_hosts 2>/dev/null || true
- name: Build all closures
run: nix flake check --no-build
# Order matters: db schema migrations are part of db-host's activation,
# so it must land first. App-host's Supabase compose stack expects the
# schemas to exist. mqtt-ingest only needs the network paths to db-host.
- name: Deploy db-host
run: nix run github:serokell/deploy-rs -- .#db-host --skip-checks
- name: Deploy app-host
run: nix run github:serokell/deploy-rs -- .#app-host --skip-checks
- name: Deploy mqtt-ingest
run: nix run github:serokell/deploy-rs -- .#mqtt-ingest --skip-checks