From 412829929dc0699243366d2180ed8ea910ea7f93 Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Wed, 17 Apr 2024 09:04:45 +0530 Subject: [PATCH] fix(.github): Use matrix strategy for docker build & push Signed-off-by: Diwank Singh Tomer --- .github/workflows/push-to-hub.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-to-hub.yml b/.github/workflows/push-to-hub.yml index eaf31bd35..08fbf38f7 100644 --- a/.github/workflows/push-to-hub.yml +++ b/.github/workflows/push-to-hub.yml @@ -11,6 +11,10 @@ jobs: Build-Push-Images-To-Docker-Hub: runs-on: ubuntu-latest + strategy: + matrix: + directory: [agents-api, model-serving, gateway, memory-store] + steps: - uses: actions/checkout@v4 @@ -18,7 +22,7 @@ jobs: with: username: julepai password: "${{ secrets.DOCKER_HUB_PASSWORD }}" - compose_file: docker-compose.yml + compose_file: "${{ matrix.directory }}/docker-compose.yml" concurrency: group: ${{ github.workflow }}-${{ github.ref }}