From d0d9893c2e0e28f843817e5094c0c40fa04bc478 Mon Sep 17 00:00:00 2001 From: eshanized Date: Thu, 2 Jan 2025 04:16:13 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20remove=20arm64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/snigdhaos-docker.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/snigdhaos-docker.yml b/.github/workflows/snigdhaos-docker.yml index d5872eb..ed8cabe 100644 --- a/.github/workflows/snigdhaos-docker.yml +++ b/.github/workflows/snigdhaos-docker.yml @@ -17,7 +17,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - # Set up QEMU for multi-architecture builds + # Set up QEMU for multi-architecture builds (optional, now removed arm64) - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -41,17 +41,16 @@ jobs: restore-keys: | ${{ runner.os }}-buildx- - # Build and push Docker image with multi-architecture support + # Build and push Docker image (only for amd64 platform now) - name: Build and push Docker image uses: docker/build-push-action@v4 with: - context: ./snigdhaos # Update context to the snigdhaos directory + context: ./snigdhaos # Ensure the Dockerfile is inside the snigdhaos directory push: true - tags: | - snigdhaos/snigdhaos:latest - platforms: linux/amd64,linux/arm64 # Support for multiple architectures - cache-to: type=inline # Improved caching mechanism - cache-from: type=registry,ref=snigdhaos/snigdhaos:latest + tags: snigdhaos/snigdhaos:latest + platforms: linux/amd64 # Only build for amd64 + cache-to: type=inline # Use inline caching + cache-from: type=registry,ref=snigdhaos/snigdhaos:latest # Use cached layers from Docker Hub # Optionally, tag the build with a version from GitHub - name: Tag Docker image with version