From f169436e17395b892fc3f5e7e50ec0dc151c5da6 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Sat, 21 Mar 2026 16:14:50 +0100 Subject: [PATCH] Add CI/CD --- .gitea/workflows/astro.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/astro.yml diff --git a/.gitea/workflows/astro.yml b/.gitea/workflows/astro.yml new file mode 100644 index 0000000..2c6fc7e --- /dev/null +++ b/.gitea/workflows/astro.yml @@ -0,0 +1,41 @@ +name: Deploy Astro +on: + push: + branches: + - dev + +jobs: + build-and-deploy: + name: Build and Deploy + runs-on: ubuntu-latest + + services: + kroki: + image: yuzutech/kroki + env: + KROKI_MERMAID_HOST: mermaid + options: --depends-on mermaid + mermaid: + image: yuzutech/kroki-mermaid + + steps: + - uses: actions/checkout@v3 + name: Checkout code + - name: Setup node and bun + uses: oven-sh/setup-bun@v2 + - name: Install dependencies + run: bun install + - name: Check and build + run: bun run build + env: + KROKI_SERVER: "http://kroki" + - name: Copy files via ssh + uses: appleboy/scp-action@v1 + with: + host: c0ntroller.de + username: ${{ secrets.SSH_USERNAME }} + key: ${{ secrets.SSH_KEY }} + source: "dist/*" + target: /srv/website/dev + overwrite: true + strip_components: 1 \ No newline at end of file