From 4ff7e5b288dff939034a3e1bdd569c44cd209df8 Mon Sep 17 00:00:00 2001 From: Kappeh Date: Wed, 14 Jan 2026 16:42:44 +0000 Subject: [PATCH] Add CI workflow --- .gitea/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) 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..82a3f50 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,40 @@ +name: ci + +on: + push: + branches: + - main + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + - name: Install Rust Toolchain + uses: dtolnay/rust-toolchain@v1 + with: + toolchain: stable + - name: Enable Smart Caching + uses: Swatinem/rust-cache@v2 + - name: Run tests + run: cargo test + build: + name: Build and Push + runs-on: ubuntu-latest + needs: test + steps: + - name: Login to Local Docker Registry + uses: docker/login-action@v3 + with: + registry: registry.leaf.home.kappeh.org + username: ${{ vars.LOCAL_DOCKER_USERNAME }} + password: ${{ secrets.LOCAL_DOCKER_PASSWORD }} + logout: true + - name: Build and Push + uses: docker/build-and-push-action@v6 + with: + push: true + tags: registry.leaf.home.kappeh.org/kappeh/minecraft_schematics_web:latest +