From 8b9af5ef268225cf307ed8f6703e6a7b87f2c91c Mon Sep 17 00:00:00 2001 From: iceBear67 Date: Sun, 5 Jul 2026 16:22:07 +0800 Subject: [PATCH] add build workflow --- .gitea/workflows/build-image.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/build-image.yml diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml new file mode 100644 index 0000000..370c052 --- /dev/null +++ b/.gitea/workflows/build-image.yml @@ -0,0 +1,22 @@ +name: Build and Publish Docker Image +on: [push] + +jobs: + build: + permissions: + packages: write + code: read + runs-on: ubuntu-latest + steps: + - name: Login to Gitea Registry + uses: docker/login-action@v4 + with: + username: ${{ gitea.actor }} + password: ${{ gitea.token }} + - name: Setup buildx + uses: docker/setup-buildx-action@v4 + - name: Build and push + uses: docker/build-push-action@v7 + with: + push: true + tags: cloud/workspace-image:latest