From f5df91c21f3fbbbe0dbb75f849c200ac41350f72 Mon Sep 17 00:00:00 2001 From: yuxuanhui Date: Tue, 4 Aug 2026 13:24:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=83=A8=E7=BD=B2=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy-production.yaml | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/deploy-production.yaml diff --git a/.gitea/workflows/deploy-production.yaml b/.gitea/workflows/deploy-production.yaml new file mode 100644 index 0000000..a5751a2 --- /dev/null +++ b/.gitea/workflows/deploy-production.yaml @@ -0,0 +1,33 @@ +name: Deploy Production + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + timeout-minutes: 30 + + env: + COMPOSE_PROJECT_NAME: zhixing-system + ZHIXING_WEB_PORT: "8111" + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Validate production compose + run: docker compose -f docker-compose.prod.yml config + + - name: Build and deploy services + run: docker compose -f docker-compose.prod.yml up -d --build --remove-orphans + + - name: Verify web service + run: docker compose -f docker-compose.prod.yml exec -T web wget -q -O - http://127.0.0.1/healthz + + - name: Show deployed services + if: always() + run: docker compose -f docker-compose.prod.yml ps