Skip to content

Commit

Permalink
changed docker workflow to use multiple runners
Browse files Browse the repository at this point in the history
  • Loading branch information
realkaranvir committed Dec 7, 2024
1 parent 70bb4d9 commit 382dbf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ on:
- karan

jobs:
push_to_registry:
build_and_push_docker_image:
name: Push Docker Image to Docker Hub
if: github.event_name == 'push'
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux/amd64, linux/arm64]

steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -50,7 +53,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platform }}
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.event_name != 'pull_request' }}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
retries: 10

femr:
build: .
image: teamfemrdev/teamfemr
links:
- db:mysql
depends_on:
Expand Down

0 comments on commit 382dbf4

Please sign in to comment.