From dccffc757e5c5b24c03f9226c1c5958f8a228fc7 Mon Sep 17 00:00:00 2001 From: nixbi93 Date: Tue, 7 Oct 2025 10:14:37 +0000 Subject: [PATCH] =?UTF-8?q?.gitea/workflows/buildDocker.yaml=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/buildDocker.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/buildDocker.yaml diff --git a/.gitea/workflows/buildDocker.yaml b/.gitea/workflows/buildDocker.yaml new file mode 100644 index 0000000..3900cd4 --- /dev/null +++ b/.gitea/workflows/buildDocker.yaml @@ -0,0 +1,31 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Gitea Registry + uses: docker/login-action@v3 + with: + registry: gitea.example.com + username: ${{ gitea.actor }} + password: ${{ secrets.REGISTRY_TOKEN }} # Der Token für das eigene Repo, ggf. als PAT erzeugen + + - name: Build and Push Docker Image + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: gitea.example.com/${{ gitea.owner }}/${{ gitea.repo }}:${{ gitea.sha }},gitea.example.com/${{ gitea.owner }}/${{ gitea.repo }}:latest