Skip to content

Commit

Permalink
fix: build but don't push not master
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Mar 31, 2024
1 parent 76bcf56 commit 76e30ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
if: github.ref == 'refs/heads/master'
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
platforms: ${{ env.DOCKER_PLATFORMS }}
push: true
push: ${{ github.ref == 'refs/heads/master' }}
tags: ${{ env.DOCKER_IMAGE }}:${{ matrix.branch }}
build-args: ${{ matrix.build-args }}
cache-from: type=local,src=/tmp/.buildx-cache
Expand Down

0 comments on commit 76e30ba

Please sign in to comment.