Skip to content

chore(HACBS-2593): internal-request script should fail on IR failure … #39

chore(HACBS-2593): internal-request script should fail on IR failure …

chore(HACBS-2593): internal-request script should fail on IR failure … #39

name: Build and push image
on:
push:
branches:
- main
jobs:
build-and-push-image:
name: Build and push image
runs-on: ubuntu-20.04
env:
QUAY_ORG: hacbs-release
QUAY_REPO: release-utils
steps:
- name: Check out source code
uses: actions/checkout@v3
- name: Login to Quay
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_ROBOT_USER }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build image and push it to Quay
uses: docker/build-push-action@v4
with:
context: .
push: true
file: Dockerfile
no-cache: true
tags: |
quay.io/${{ env.QUAY_ORG }}/${{ env.QUAY_REPO }}:main
quay.io/${{ env.QUAY_ORG }}/${{ env.QUAY_REPO }}:latest
quay.io/${{ env.QUAY_ORG }}/${{ env.QUAY_REPO }}:${{ github.sha }}