From 5edeec6eb30d224e69989f39be2368151fb955c1 Mon Sep 17 00:00:00 2001 From: Matthias Hinrichs Date: Fri, 21 Nov 2025 22:35:45 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20f=C3=BCge=20Docker=20Build-=20und=20Pus?= =?UTF-8?q?h-Schritte=20zur=20CI=20hinzu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/gitea-ci.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/gitea-ci.yaml b/.gitea/workflows/gitea-ci.yaml index 520372b..b11eb3d 100644 --- a/.gitea/workflows/gitea-ci.yaml +++ b/.gitea/workflows/gitea-ci.yaml @@ -20,4 +20,25 @@ jobs: go-version: '1.24' - run: go version - run: ls -lha - - run: go build -v ./... \ No newline at end of file + - run: go build -v ./... + + publish: + needs: build + runs-on: ubuntu-latest + if: gitea.ref == 'refs/heads/main' + steps: + - uses: https://github.com/actions/checkout@v6 + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + config-inline: | + [git.hnrx.net] + username = ${{ secrets.DOCKER_USERNAME }} + password = ${{ secrets.DOCKER_PASSWORD }} + - name: Build and Push Docker Image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: git.hnrx.net/homelab/manage-servers:latest + file: ./Dockerfile \ No newline at end of file