From d4828f369e37e46c04fa32a6785e60ae1a273bcf Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Fri, 16 Feb 2024 07:37:49 +0100 Subject: [PATCH] Add a GitHub Action to build and push container images Signed-off-by: Siteshwar Vashisht --- .github/workflows/build-and-push.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build-and-push.yml diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml new file mode 100644 index 0000000..2d45738 --- /dev/null +++ b/.github/workflows/build-and-push.yml @@ -0,0 +1,20 @@ +# https://github.com/sclorg/build-and-push-action +name: Build and push to quay.io registry +on: + push: + branches: + - main +jobs: + build-and-push: + runs-on: ubuntu-20.04 + steps: + - name: Build and push to quay.io registry + uses: sclorg/build-and-push-action@v2 + with: + registry: "quay.io" + registry_namespace: "openscanhub-fedora-infra" + registry_username: ${{ secrets.REGISTRY_LOGIN }} + registry_token: ${{ secrets.REGISTRY_TOKEN }} + dockerfile: "containers/hub.Containerfile" + image_name: "ocp" + tag: "staging"