diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d8397b..4ff98c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: uses: docker/build-push-action@v3 with: file: ./manylinux2014_x86_64/Dockerfile - push: ${{ github.event_name == 'push' }} + push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} tags: ghcr.io/libertem/manylinux2014_x86_64:latest linux-aarch64: @@ -39,5 +39,5 @@ jobs: with: file: ./manylinux2014_aarch64/Dockerfile platforms: linux/arm64 - push: ${{ github.event_name == 'push' }} + push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} tags: ghcr.io/libertem/manylinux2014_aarch64:latest