Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
realkaranvir committed Dec 8, 2024
1 parent 358d2dc commit 50770c8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:
build_and_push_docker_image:
name: Push Docker Image to Docker Hub
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux/amd64, linux/arm64]

steps:
- name: Checkout Repository
Expand All @@ -38,9 +35,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 @@ -56,7 +53,6 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64, linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit 50770c8

Please sign in to comment.