Compare commits

...

8 Commits

Author SHA1 Message Date
kurihada 47f92ac7e1 CI: simplified workflow with pre-built CI image
CI and Deploy / ci-gate (push) Successful in 34s
CI and Deploy / build-and-deploy (push) Failing after 14m26s
CI and Deploy / full-e2e (push) Failing after 14m58s
2026-06-02 10:21:42 +08:00
kurihada 48a20c800d Optimize workflow with proper tool installation
CI and Deploy / build-and-deploy (push) Blocked by required conditions
CI and Deploy / full-e2e (push) Blocked by required conditions
CI and Deploy / ci-gate (push) Has started running
2026-06-01 17:57:58 +08:00
kurihada 3b7545dd52 Use direct git clone with Docker gateway
CI and Deploy / ci-gate (push) Failing after 12m59s
CI and Deploy / build-and-deploy (push) Has been skipped
CI and Deploy / full-e2e (push) Failing after 14m59s
2026-06-01 17:28:46 +08:00
kurihada 120b06a50c CI: test with runner config
CI and Deploy / build-and-deploy (push) Blocked by required conditions
CI and Deploy / full-e2e (push) Blocked by required conditions
CI and Deploy / ci-gate (push) Has started running
2026-06-01 17:06:37 +08:00
kurihada 989ea68f7e Retrigger CI
CI and Deploy / build-and-deploy (push) Blocked by required conditions
CI and Deploy / full-e2e (push) Blocked by required conditions
CI and Deploy / ci-gate (push) Has started running
2026-06-01 16:59:15 +08:00
kurihada 59c947f2e0 Simplify Gitea Actions workflow
CI and Deploy / ci-gate (push) Waiting to run
CI and Deploy / build-and-deploy (push) Blocked by required conditions
CI and Deploy / full-e2e (push) Blocked by required conditions
2026-06-01 16:58:03 +08:00
kurihada 9f27e4db51 Trigger Gitea Actions workflow
CI and Deploy / build-and-deploy (push) Blocked by required conditions
CI and Deploy / full-e2e (push) Blocked by required conditions
CI and Deploy / ci-gate (push) Has started running
2026-06-01 16:47:19 +08:00
kurihada f2eb3f5cb1 Add Gitea Actions workflow (migrated from Jenkins)
CI and Deploy / build-and-deploy (push) Blocked by required conditions
CI and Deploy / full-e2e (push) Blocked by required conditions
CI and Deploy / ci-gate (push) Has started running
2026-06-01 16:35:25 +08:00
+84
View File
@@ -0,0 +1,84 @@
name: CI and Deploy
on:
push:
branches: [main]
workflow_dispatch:
inputs:
run_full_e2e:
description: 'Run full E2E tests after deploy'
type: boolean
default: false
jobs:
ci-gate:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone http://172.17.0.1:3000/kurihada/no-whatever.git .
git checkout ${{ github.sha }}
- name: Install dependencies
run: npm ci
- name: Generate Prisma
run: npx prisma generate
- name: Lint
run: npm run lint
- name: Unit tests
run: npm run test
build-and-deploy:
needs: ci-gate
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone http://172.17.0.1:3000/kurihada/no-whatever.git .
git checkout ${{ github.sha }}
- name: Build Docker image
run: |
docker build \
--build-arg NEXT_PUBLIC_AMAP_API_KEY="${{ secrets.AMAP_API_KEY }}" \
-t no-whatever:latest .
- name: Deploy
run: |
docker stop no-whatever || true
docker rm no-whatever || true
mkdir -p /data/no-whatever && chown 1001:1001 /data/no-whatever
docker run -d \
--name no-whatever \
--network nginx \
-p 3721:3721 \
-v /data/no-whatever:/app/data \
-e DATABASE_URL=file:/app/data/prod.db \
-e AMAP_API_KEY="${{ secrets.AMAP_API_KEY }}" \
-e DEEPSEEK_API_KEY="${{ secrets.DEEPSEEK_API_KEY }}" \
--restart unless-stopped \
no-whatever:latest
full-e2e:
needs: build-and-deploy
if: ${{ inputs.run_full_e2e }}
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone http://172.17.0.1:3000/kurihada/no-whatever.git .
git checkout ${{ github.sha }}
- name: Install dependencies
run: npm ci
- name: Full E2E
run: |
npx prisma generate
npm run test:e2e