From afe727aac8fa909efa2e4ca2505063b03b089f46 Mon Sep 17 00:00:00 2001 From: Alex Bozarth Date: Mon, 25 Nov 2024 19:54:40 -0600 Subject: [PATCH] dont push on pr Signed-off-by: Alex Bozarth --- .github/workflows/openssl3.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }}