From 190ecaebaf5f1fc89bc3f9e050550078fd183187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20P=C3=B6ttker?= Date: Mon, 4 May 2026 08:05:57 +0200 Subject: [PATCH] Add Gitea Action for multi-platform docker builds --- .gitea/workflows/build.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..b55f4a1 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build and Push Multi-Platform Images + +on: + push: + branches: + - main + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Gitea Container Registry + uses: docker/login-action@v3 + with: + registry: gitea.poettker-cloud.de + username: ${{ gitea.actor }} + password: ${{ secrets.GITEA_TOKEN }} + + - name: Build and Push Backend + uses: docker/build-push-action@v5 + with: + context: ./paperless-backend + platforms: linux/amd64,linux/arm64 + push: true + tags: gitea.poettker-cloud.de/bjoernpoettker/paperlessmanager-backend:latest + + - name: Build and Push Frontend + uses: docker/build-push-action@v5 + with: + context: ./paperless-frontend + platforms: linux/amd64,linux/arm64 + push: true + tags: gitea.poettker-cloud.de/bjoernpoettker/paperlessmanager-frontend:latest