diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index d459b1e2..9cfaa8fa 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -19,7 +19,14 @@ jobs: apt-get install -y \ docker.io \ openssh-client \ - rsync + rsync \ + qemu-user-static \ + binfmt-support + + - name: Set up Docker Buildx + run: | + docker buildx create --use + docker buildx inspect --bootstrap - name: Login to registry env: @@ -30,16 +37,15 @@ jobs: - name: Build and push image run: | - # Simple build for ARM64 (server platform) - DOCKER_API_VERSION=1.44 docker build \ + # Build for ARM64 using Buildx (required for cross-platform build) + DOCKER_API_VERSION=1.44 docker buildx build \ --platform linux/arm64 \ --pull \ --build-arg NEXT_PUBLIC_UMAMI_WEBSITE_ID=${{ secrets.NEXT_PUBLIC_UMAMI_WEBSITE_ID }} \ --build-arg NEXT_PUBLIC_UMAMI_SCRIPT_URL=${{ secrets.NEXT_PUBLIC_UMAMI_SCRIPT_URL }} \ --build-arg NEXT_PUBLIC_SENTRY_DSN=${{ secrets.SENTRY_DSN }} \ - -t registry.infra.mintel.me/mintel/klz-cables.com:latest . - - DOCKER_API_VERSION=1.44 docker push registry.infra.mintel.me/mintel/klz-cables.com:latest + -t registry.infra.mintel.me/mintel/klz-cables.com:latest \ + --push . - name: Setup SSH run: |