Add GHA workflow for pushing releases to Quay

This commit is contained in:
Shane McDonald
2021-04-08 07:10:44 -04:00
parent d8b7ed81b5
commit 295ed47c43
3 changed files with 60 additions and 21 deletions

View File

@@ -3,13 +3,14 @@
name: Release
on:
push:
branches: [devel]
release:
types:
- created
jobs:
release:
runs-on: ubuntu-18.04
name: release
name: Push tagged image to Quay
steps:
- uses: actions/checkout@v2
@@ -22,13 +23,13 @@ jobs:
- name: Build Image
run: |
operator-sdk build awx-operator:devel
operator-sdk build awx-operator:${{ github.event.release.tag_name }}
- name: Push To Quay
uses: redhat-actions/push-to-registry@v2.1.1
with:
image: awx-operator
tags: devel
tags: ${{ github.event.release.tag_name }}
registry: quay.io/ansible/
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}