From 3d519d44d8d21103a45ea9f43b94dd9b45c8b0fd Mon Sep 17 00:00:00 2001 From: Devdutt Shenoi Date: Mon, 3 Mar 2025 16:48:23 +0530 Subject: [PATCH 1/2] ci: separate out build steps per platform --- .github/workflows/build-push-edge-debug.yaml | 15 +++++++++++++-- .github/workflows/build-push-edge.yaml | 20 ++++++++++++++++---- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-push-edge-debug.yaml b/.github/workflows/build-push-edge-debug.yaml index bb619eb80..ac5cd748c 100644 --- a/.github/workflows/build-push-edge-debug.yaml +++ b/.github/workflows/build-push-edge-debug.yaml @@ -37,13 +37,24 @@ jobs: with: images: parseable/parseable - - name: Build and push + - name: Build and push x86_64 uses: docker/build-push-action@v6 with: context: . file: ./Dockerfile.debug push: true tags: parseable/parseable:edge-debug - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 + cache-from: type=gha + cache-to: type=gha,mode=max + + - name: Build and push aarch64 + uses: docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile.debug + push: true + tags: parseable/parseable:edge-debug + platforms: linux/arm64 cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/build-push-edge.yaml b/.github/workflows/build-push-edge.yaml index ccd0bb123..2c25c5117 100644 --- a/.github/workflows/build-push-edge.yaml +++ b/.github/workflows/build-push-edge.yaml @@ -37,13 +37,25 @@ jobs: with: images: parseable/parseable - - name: Build and push + + - name: Build and push x86_64 + uses: docker/build-push-action@v6 + with: + context: . + file: ./Dockerfile.debug + push: true + tags: parseable/parseable:edge-debug + platforms: linux/amd64 + cache-from: type=gha + cache-to: type=gha,mode=max + + - name: Build and push aarch64 uses: docker/build-push-action@v6 with: context: . - file: ./Dockerfile + file: ./Dockerfile.debug push: true - tags: parseable/parseable:edge - platforms: linux/amd64,linux/arm64 + tags: parseable/parseable:edge-debug + platforms: linux/arm64 cache-from: type=gha cache-to: type=gha,mode=max From bbdaed64a5dd728fa58233d57e04cb385225b08b Mon Sep 17 00:00:00 2001 From: Devdutt Shenoi Date: Wed, 5 Mar 2025 13:21:20 +0530 Subject: [PATCH 2/2] fix: build edge image Signed-off-by: Devdutt Shenoi --- .github/workflows/build-push-edge.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-push-edge.yaml b/.github/workflows/build-push-edge.yaml index 2c25c5117..9eb08b07c 100644 --- a/.github/workflows/build-push-edge.yaml +++ b/.github/workflows/build-push-edge.yaml @@ -42,9 +42,9 @@ jobs: uses: docker/build-push-action@v6 with: context: . - file: ./Dockerfile.debug + file: ./Dockerfile push: true - tags: parseable/parseable:edge-debug + tags: parseable/parseable:edge platforms: linux/amd64 cache-from: type=gha cache-to: type=gha,mode=max @@ -53,9 +53,9 @@ jobs: uses: docker/build-push-action@v6 with: context: . - file: ./Dockerfile.debug + file: ./Dockerfile push: true - tags: parseable/parseable:edge-debug + tags: parseable/parseable platforms: linux/arm64 cache-from: type=gha cache-to: type=gha,mode=max