Skip to content

Commit

Permalink
update context to directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-tf committed Jul 23, 2024
1 parent 1bce782 commit 189cb16
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 189cb16

Please sign in to comment.