From 395dcad6be3008d65b1c5d4470b7197de0e624e5 Mon Sep 17 00:00:00 2001 From: jeanGaston Date: Thu, 30 Jul 2026 10:41:36 +0200 Subject: [PATCH] ci: add Gitea Actions workflow to publish Docker image Builds the existing Dockerfile and pushes it to the Gitea container registry on pushes to main/master and version tags. --- .gitea/workflows/docker-publish.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/docker-publish.yml diff --git a/.gitea/workflows/docker-publish.yml b/.gitea/workflows/docker-publish.yml new file mode 100644 index 0000000..e0b2ca3 --- /dev/null +++ b/.gitea/workflows/docker-publish.yml @@ -0,0 +1,34 @@ +name: Publish Docker image + +on: + push: + branches: [main, master] + tags: ['v*'] + +permissions: + contents: read + packages: write + +jobs: + build-and-push: + runs-on: docker + steps: + - uses: actions/checkout@v4 + + - uses: docker/setup-buildx-action@v3 + + - name: Log in to Gitea container registry + uses: docker/login-action@v3 + with: + registry: ${{ vars.GITEA_REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: | + ${{ vars.GITEA_REGISTRY }}/${{ github.repository }}:latest + ${{ vars.GITEA_REGISTRY }}/${{ github.repository }}:${{ github.sha }}