first commit

This commit is contained in:
2026-01-21 12:02:55 +08:00
commit 1b10271ee6
11 changed files with 261 additions and 0 deletions

22
.gitea/workflows/cd.yaml Normal file
View File

@@ -0,0 +1,22 @@
on:
push:
branches:
- master
jobs:
up:
name: "CD > 啟動服務"
runs-on: ct-docker
steps:
- name: 取得專案
uses: actions/checkout@v4
- name: 啟動 Traefik
run: cd "${{ gitea.workspace }}/traefik" && docker compose up -d --build
- name: 重新啟動 Traefik
run: cd "${{ gitea.workspace }}/traefik" && docker compose restart
clear:
name: "CD > 清理資源"
runs-on: ct-docker
needs: up
steps:
- name: 清理資源
run: docker system prune -af --volumes