Files
kjvstudy.org/.github/workflows/deploy.yml
T
kennethreitz 9ee2a3c39b Switch deploys from Fly.io to Dokploy on mercury
Tests still gate the deploy; the deploy step now hits the Dokploy
webhook (DOKPLOY_DEPLOY_URL secret) instead of running flyctl.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 00:18:11 -04:00

33 lines
795 B
YAML

# Deploys to the Dokploy instance on mercury (mercury.kennethreitz.org)
# by hitting the application's deploy webhook after tests pass.
name: Deploy
on:
push:
branches: [main]
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
version: "latest"
- run: uv python install 3.13
- run: uv sync --extra dev
- run: uv run pytest tests/ -n auto --tb=short
deploy:
name: Deploy app
runs-on: ubuntu-latest
needs: test
environment: prod
concurrency: deploy-group
steps:
- name: Trigger Dokploy deploy
run: curl -fsS -X POST "$DOKPLOY_DEPLOY_URL"
env:
DOKPLOY_DEPLOY_URL: ${{ secrets.DOKPLOY_DEPLOY_URL }}