ci: add deploy stage to trigger Coolify after CI passes
Some checks failed
CI / Format (push) Failing after 6m21s
CI / Clippy (push) Successful in 2m17s
CI / Security Audit (push) Successful in 1m39s
CI / Tests (push) Has been skipped
CI / Clippy (pull_request) Has been cancelled
CI / Security Audit (pull_request) Has been cancelled
CI / Tests (pull_request) Has been cancelled
CI / Deploy (pull_request) Has been cancelled
CI / Format (pull_request) Has been cancelled
CI / Deploy (push) Has been cancelled
Some checks failed
CI / Format (push) Failing after 6m21s
CI / Clippy (push) Successful in 2m17s
CI / Security Audit (push) Successful in 1m39s
CI / Tests (push) Has been skipped
CI / Clippy (pull_request) Has been cancelled
CI / Security Audit (pull_request) Has been cancelled
CI / Tests (pull_request) Has been cancelled
CI / Deploy (pull_request) Has been cancelled
CI / Format (pull_request) Has been cancelled
CI / Deploy (push) Has been cancelled
Deploy job runs only on main branch after all quality checks and tests succeed, replacing the immediate push webhook with a gated deployment. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -95,3 +95,20 @@ jobs:
|
||||
- name: Run tests (web)
|
||||
run: cargo test --features web --no-default-features
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Stage 3: Deploy (only after tests pass, only on main)
|
||||
# ---------------------------------------------------------------------------
|
||||
deploy:
|
||||
name: Deploy
|
||||
runs-on: docker
|
||||
needs: [test]
|
||||
if: github.ref == 'refs/heads/main'
|
||||
container:
|
||||
image: alpine:latest
|
||||
steps:
|
||||
- name: Trigger Coolify deploy
|
||||
run: |
|
||||
apk add --no-cache curl
|
||||
curl -sf "${{ secrets.COOLIFY_WEBHOOK }}" \
|
||||
-H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user