chpore: add gitea stuff
Some checks failed
CI/CD / test (push) Failing after 1m10s
CI/CD / deploy-staging (push) Has been skipped
CI/CD / deploy-prod (push) Has been skipped

This commit is contained in:
2026-01-03 19:27:49 +03:00
parent fb5fa248dd
commit 3522f243b8
2 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# .gitea/workflows/ai-solve-issue.yml
name: AI Issue Solver
on:
issues:
types: [labeled]
jobs:
solve:
if: github.event.label.name == 'ai-solve'
runs-on: opencode
steps:
- name: Solve Issue
env:
GITEA_URL: ${{ secrets.GITEA_URL }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
run: solve-issue

View File

@@ -0,0 +1,44 @@
# .gitea/workflows/deploy.yml
name: CI/CD
on:
push:
branches: [main, staging]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- run: bun ci
- run: bun test
# Preview - handled automatically by Coolify!
# No action needed here
deploy-staging:
needs: test
if: github.ref == 'refs/heads/staging'
runs-on: ubuntu-latest
steps:
- name: Trigger Coolify Staging Deploy
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}" \
"${{ secrets.COOLIFY_URL }}/api/v1/applications/${{ secrets.COOLIFY_STAGING_APP_ID }}/deploy"
deploy-prod:
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Trigger Coolify Production Deploy
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}" \
"${{ secrets.COOLIFY_URL }}/api/v1/applications/${{ secrets.COOLIFY_PROD_APP_ID }}/deploy"