Merge pull request #60 from Troy876/RHTAPBUGS-763 #41
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
--- | |
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 }} |