From 382dbf40e6307aadcc11ebd7c46a33a6d2af8219 Mon Sep 17 00:00:00 2001 From: realkaranvir <113927390+realkaranvir@users.noreply.github.com> Date: Sat, 7 Dec 2024 15:26:51 -0800 Subject: [PATCH] changed docker workflow to use multiple runners --- .github/workflows/docker-image.yml | 9 ++++++--- docker-compose.yml | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 10733378b..c928b5520 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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 @@ -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' }} diff --git a/docker-compose.yml b/docker-compose.yml index be16c8367..9dbde9ec3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,7 +24,7 @@ services: retries: 10 femr: - build: . + image: teamfemrdev/teamfemr links: - db:mysql depends_on: