diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0bcd7e0..fa19c53 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -50,13 +50,12 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push Docker image - if: github.ref == 'refs/heads/master' uses: docker/build-push-action@v5.3.0 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