From f9450b99f4df13753b9c5dbc1caf857a44282713 Mon Sep 17 00:00:00 2001 From: Andrew Lau Date: Mon, 30 Sep 2024 19:51:30 +0700 Subject: [PATCH] feat: build indexer-events, disable arm64 --- .github/workflows/build-images.yaml | 33 +++++++++++++++++++---------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-images.yaml b/.github/workflows/build-images.yaml index c35205fa..ca34e101 100644 --- a/.github/workflows/build-images.yaml +++ b/.github/workflows/build-images.yaml @@ -15,7 +15,7 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v3 with: - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -32,7 +32,7 @@ jobs: with: context: . file: apps/api/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ghcr.io/nearblocks/api:latest cache-from: type=registry,ref=ghcr.io/nearblocks/api:latest @@ -43,7 +43,7 @@ jobs: with: context: . file: apps/app/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ghcr.io/nearblocks/app:latest cache-from: type=registry,ref=ghcr.io/nearblocks/app:latest @@ -54,7 +54,7 @@ jobs: with: context: . file: apps/app-lite/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ghcr.io/nearblocks/app-lite:latest cache-from: type=registry,ref=ghcr.io/nearblocks/app-lite:latest @@ -65,7 +65,7 @@ jobs: with: context: . file: apps/backend/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ghcr.io/nearblocks/backend:latest cache-from: type=registry,ref=ghcr.io/nearblocks/backend:latest @@ -76,7 +76,7 @@ jobs: with: context: . file: apps/indexer-balance/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ghcr.io/nearblocks/indexer-balance:latest cache-from: type=registry,ref=ghcr.io/nearblocks/indexer-balance:latest @@ -87,18 +87,29 @@ jobs: with: context: . file: apps/indexer-base/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ghcr.io/nearblocks/indexer-base:latest cache-from: type=registry,ref=ghcr.io/nearblocks/indexer-base:latest cache-to: type=inline + - name: Build and push (INDEXER EVENTS) + uses: docker/build-push-action@v5 + with: + context: . + file: apps/indexer-events/Dockerfile + platforms: linux/amd64 + push: true + tags: ghcr.io/nearblocks/indexer-events:latest + cache-from: type=registry,ref=ghcr.io/nearblocks/indexer-events:latest + cache-to: type=inline + - name: Build and push (INDEXER DEX) uses: docker/build-push-action@v5 with: context: . file: apps/indexer-dex/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ghcr.io/nearblocks/indexer-dex:latest cache-from: type=registry,ref=ghcr.io/nearblocks/indexer-dex:latest @@ -109,7 +120,7 @@ jobs: with: context: . file: apps/explorer-selector/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ghcr.io/nearblocks/explorer-selector:latest cache-from: type=registry,ref=ghcr.io/nearblocks/explorer-selector:latest @@ -120,7 +131,7 @@ jobs: with: context: . file: apps/aggregates/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ghcr.io/nearblocks/aggregates:latest cache-from: type=registry,ref=ghcr.io/nearblocks/aggregates:latest @@ -131,7 +142,7 @@ jobs: with: context: . file: apps/explorer-selector/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ghcr.io/nearblocks/explorer-selector:latest cache-from: type=registry,ref=ghcr.io/nearblocks/explorer-selector:latest