Skip to content

Commit

Permalink
Add a GitHub Action to build and push container images
Browse files Browse the repository at this point in the history
Signed-off-by: Siteshwar Vashisht <svashisht@redhat.com>
  • Loading branch information
siteshwar committed Feb 16, 2024
1 parent c75f61e commit d4828f3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit d4828f3

Please sign in to comment.