diff --git a/.github/workflows/openssl3.yml b/.github/workflows/openssl3.yml index 895dff6..4a93a2f 100644 --- a/.github/workflows/openssl3.yml +++ b/.github/workflows/openssl3.yml @@ -34,7 +34,7 @@ env: build-args: | LIBOQS_TAG=main OQSPROVIDER_TAG=main - push: ${{ github.repository == 'open-quantum-safe/oqs-demos' && github.ref == 'refs/heads/main' }} + push: ${{ github.repository == 'open-quantum-safe/oqs-demos' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }} jobs: build: @@ -50,7 +50,7 @@ jobs: - uses: docker/setup-qemu-action@v3 - uses: docker/setup-buildx-action@v3 - uses: docker/login-action@v3 - if: ${{ env.push == true }} + if: env.push with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }}