feat: build CoffeeChat mini program and backend
CI / test (push) Has been cancelled

This commit is contained in:
2026-09-21 03:38:09 +08:00
commit 5a156b2d87
101 changed files with 3752 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
name: Deploy production
on:
workflow_dispatch:
jobs:
deploy:
runs-on: minecraft-and-affine-server
concurrency: coffeechat-production
steps:
- uses: actions/checkout@v4
- name: Test
run: docker run --rm -v "$PWD:/app" -w /app node:22-alpine sh -c "npm ci && npm run check && npm test"
- name: Load production environment
run: test -f /opt/coffeechat/.env && cp /opt/coffeechat/.env .env
- name: Build and migrate
run: docker compose --env-file .env -f deploy/docker-compose.yml build --pull
- name: Start production
run: docker compose --env-file .env -f deploy/docker-compose.yml up -d --remove-orphans
- name: Verify health
run: curl --fail --retry 12 --retry-delay 5 http://127.0.0.1:${COFFEECHAT_PORT:-3100}/health