mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
9ee2a3c39b
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>
33 lines
795 B
YAML
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 }}
|