-
Notifications
You must be signed in to change notification settings - Fork 34
49 lines (42 loc) · 1.46 KB
/
release-openstack-ansibleee-operator.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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 }}