From 189cb16a46af8fb559ee727c63917672e72a9192 Mon Sep 17 00:00:00 2001 From: Ishaan Mittal Date: Tue, 23 Jul 2024 16:23:55 +0530 Subject: [PATCH] update context to directory --- .github/workflows/build-and-push.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index c11e4acf..d8b89645 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -17,9 +17,9 @@ jobs: strategy: matrix: include: - - context: operator + - directory: operator repository: elasti-operator - - context: resolver + - directory: resolver repository: elasti-resolver steps: - name: Checkoutout code @@ -48,8 +48,7 @@ jobs: REPOSITORY: ${{ matrix.repository }} IMAGE_TAG: ${{ github.sha }} with: - context: . - file: ${{ matrix.context }}/Dockerfile + file: ${{ matrix.directory }}/Dockerfile push: true tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_ALIAS }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REGISTRY_ALIAS }}/${{ env.REPOSITORY }}:buildcache