Files
ai-solver-test/.gitea/workflows/deploy.yml
dimkk 0ae34c8bae
Some checks failed
Bun CI/CD / test (push) Failing after 17s
Bun CI/CD / deploy-staging (push) Has been skipped
Bun CI/CD / deploy-prod (push) Has been skipped
chore: fix bun ci
2026-01-03 19:35:46 +03:00

47 lines
1.2 KiB
YAML

# .gitea/workflows/deploy.yml
name: Bun CI/CD
on:
push:
branches: [main, staging]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: 🛠️ Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest # Or specify a version like "1.3.3"
- 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"