From ac7c0979c9e92eaade2dcb2b64b0a71490d92cf5 Mon Sep 17 00:00:00 2001 From: thehrz Date: Sun, 18 Aug 2024 22:42:33 +0800 Subject: [PATCH] ci: add gitea actions file --- .gitea/workflows/ci.yml | 25 +++++++++++++++++++++++++ docker-compose.yml | 1 - 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..e033d6f --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: + - master + + pull_request: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Install Docker + run: curl -fsSL https://get.docker.com | sh + + - name: Deploy with Docker + run: docker compose up --build -d + diff --git a/docker-compose.yml b/docker-compose.yml index 07e79de..f47694b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,5 @@ services: - traefik.enable=true - traefik.http.routers.hfbz-nginx.rule=HostRegexp(`^(www\.)?xn--fiqa592br0dm3gfp6c\.com$`) - traefik.http.routers.hfbz-nginx.entrypoints=web,websecure - - traefik.http.routers.hfbz-nginx.tls.certresolver=letsencrypt networks: - traefik