From a04a106ffda034a5bc24614590ec32eba27389a3 Mon Sep 17 00:00:00 2001 From: Patrick Juen Date: Mon, 19 Aug 2024 12:17:35 +0800 Subject: [PATCH] separate steps for cross compile --- .github/workflows/deploy.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 26fe008a5..d30dc8eff 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -225,7 +225,20 @@ jobs: - name: Build and push worker uses: docker/build-push-action@v5 with: - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 + context: . + # file: optimized-worker.Dockerfile + file: Dockerfile + push: true + tags: ${{ steps.worker-meta.outputs.tags }} + labels: ${{ steps.worker-meta.outputs.labels }} + # cache-from: type=gha + # cache-to: type=gha,mode=max + + - name: Build and push worker (ARM) + uses: docker/build-push-action@v5 + with: + platforms: linux/arm64 context: . # file: optimized-worker.Dockerfile file: Dockerfile