Skip to content

Commit

Permalink
set platform just to amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
realkaranvir committed Dec 8, 2024
1 parent 86da202 commit 750eec5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ on:
jobs:
build_and_push_docker_image:
name: Push Docker Image to Docker Hub
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
runs-on: ${{ matrix.platform == 'linux/amd64' && 'ubuntu-latest' || 'macos-latest' }}
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
Expand All @@ -35,9 +32,9 @@ jobs:
path: |
root/.ivy2
root/.sbt
key: sbt-${{ runner.os }}-${{ matrix.platform }}-${{ hashFiles('**/build.sbt', '**/project/*.sbt') }}
key: sbt-${{ runner.os }}-${{ hashFiles('**/build.sbt', '**/project/*.sbt') }}
restore-keys: |
sbt-${{ runner.os }}-${{ matrix.platform }}
sbt-${{ runner.os }}-
- name: Inject sbt cache into Docker
uses: reproducible-containers/[email protected]
Expand All @@ -53,7 +50,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ matrix.platform }}
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit 750eec5

Please sign in to comment.