From 0ee1e3fe64411af196f0cb314aa992cd340f2047 Mon Sep 17 00:00:00 2001 From: "k.eaven" Date: Tue, 26 Aug 2025 22:10:05 -0700 Subject: [PATCH] Add docker build action for arm64 --- .gitea/workflows/docker-build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index 51ad8ee..c04d98d 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -1,4 +1,4 @@ -name: Docker Build and Push +name: Docker Build and Push (Multi-architecture) on: [push] @@ -9,8 +9,15 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + with: + platforms: arm64 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + with: + platforms: linux/amd64,linux/arm64 - name: Log in to registry uses: docker/login-action@v2 @@ -19,10 +26,11 @@ jobs: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - - name: Build and push + - name: Build and push multi-arch image uses: docker/build-push-action@v4 with: context: . + platforms: linux/amd64,linux/arm64 push: true tags: | ${{ vars.REGISTRY }}/${{ vars.IMAGE_NAME }}:latest \ No newline at end of file