Skip to content

Merge pull request #248 from slagle/workflow_dispatch #1

Merge pull request #248 from slagle/workflow_dispatch

Merge pull request #248 from slagle/workflow_dispatch #1

name: Release OpenStackAnsibleEE Operator
on:
- release:
types:
- released
- prereleased
- workflow_dispatch
env:
imageregistry: 'quay.io'
imagenamespace: ${{ secrets.IMAGENAMESPACE || secrets.QUAY_USERNAME }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Tag image
uses: tinact/[email protected]
with:
image_name: ${{ env.imagenamespace }}/
image_old_tag: ${{ github.sha }}
image_new_tag: ${{ github.event.release.tag_name }}
registry: ${{ env.imageregistry }}
registry_username: ${{ secrets.QUAY_USERNAME }}
registry_password: ${{ secrets.QUAY_PASSWORD }}
- name: Tag -bundle image
uses: tinact/[email protected]
with:
image_name: ${{ env.imagenamespace }}/-bundle
image_old_tag: ${{ github.sha }}
image_new_tag: ${{ github.event.release.tag_name }}
registry: ${{ env.imageregistry }}
registry_username: ${{ secrets.QUAY_USERNAME }}
registry_password: ${{ secrets.QUAY_PASSWORD }}
- name: Tag -index image
uses: tinact/[email protected]
with:
image_name: ${{ env.imagenamespace }}/-index
image_old_tag: ${{ github.sha }}
image_new_tag: ${{ github.event.release.tag_name }}
registry: ${{ env.imageregistry }}
registry_username: ${{ secrets.QUAY_USERNAME }}
registry_password: ${{ secrets.QUAY_PASSWORD }}