Add a GitHub Action to build and push container images #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |