From 79f3692ad275cb6e5367d894c75b85ed0d0f1722 Mon Sep 17 00:00:00 2001 From: miaurizius Date: Tue, 9 Jun 2026 15:24:24 +0200 Subject: [PATCH] chore: add automated docker release workflow --- .gitea/workflows/release-docker.yaml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/release-docker.yaml diff --git a/.gitea/workflows/release-docker.yaml b/.gitea/workflows/release-docker.yaml new file mode 100644 index 0000000..33af4ab --- /dev/null +++ b/.gitea/workflows/release-docker.yaml @@ -0,0 +1,36 @@ +name: Build and Push Docker Image on Release + +on: + release: + types: [published] + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: actions/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: actions/setup-buildx-action@v3 + + - name: Log in to Gitea Container Registry + uses: docker/login-action@v3 + with: + registry: git.miaurizius.de + username: ${{ gitea.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile + push: true + platforms: linux/amd64,linux/arm64 + tags: | + git.miaurizius.de/${{ gitea.repository }}:latest + git.miaurizius.de/${{ gitea.repository }}:${{ gitea.event.release.tag_name }} \ No newline at end of file