This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
Merge pull request #248 from slagle/workflow_dispatch #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
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/docker.image-retag@1.0.2 | |
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/docker.image-retag@1.0.2 | |
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/docker.image-retag@1.0.2 | |
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 }} |