forked from openstack-k8s-operators/openstack-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.43 KB
/
release-openstack-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
name: Release OpenStack Operator
on:
release:
types:
- released
- prereleased
env:
imageregistry: 'quay.io'
imagenamespace: ${{ secrets.IMAGENAMESPACE || secrets.QUAY_USERNAME }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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 }}