From 869c2c106916cb24c79e2476b441c6e34ceb7ff8 Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Fri, 16 Feb 2024 07:44:11 +0100 Subject: [PATCH] Fix build and push GitHub Action Signed-off-by: Siteshwar Vashisht --- .github/workflows/build-and-push.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 2d45738..3d5919c 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -2,6 +2,7 @@ name: Build and push to quay.io registry on: push: + pull_request: branches: - main jobs: @@ -9,12 +10,13 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Build and push to quay.io registry - uses: sclorg/build-and-push-action@v2 + uses: sclorg/build-and-push-action@v4 with: registry: "quay.io" registry_namespace: "openscanhub-fedora-infra" registry_username: ${{ secrets.REGISTRY_LOGIN }} registry_token: ${{ secrets.REGISTRY_TOKEN }} dockerfile: "containers/hub.Containerfile" + docker_context: "containers" image_name: "ocp" tag: "staging"