From 52d4c80b19be2eaeae0ae52b4a2a0a1000d668fa Mon Sep 17 00:00:00 2001 From: Open WebUI <15+open-webui@noreply.sakamoto.best> Date: Wed, 29 Jul 2026 23:32:17 +0000 Subject: [PATCH] Add Gitea workflow for dev branch (build + push) --- .gitea/workflows/build-dev.yml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/build-dev.yml diff --git a/.gitea/workflows/build-dev.yml b/.gitea/workflows/build-dev.yml new file mode 100644 index 0000000..cf9fe8d --- /dev/null +++ b/.gitea/workflows/build-dev.yml @@ -0,0 +1,37 @@ +name: Build and Push (dev) + +on: + push: + branches: + - dev + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Gitea Registry + uses: docker/login-action@v3 + with: + registry: git.sakamoto.best + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Get short commit SHA + id: vars + run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + push: true + tags: | + git.sakamoto.best/lolz/auto-stars:${{ steps.vars.outputs.SHORT_SHA }} + git.sakamoto.best/lolz/auto-stars:dev