This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (89 loc) · 2.87 KB
/
release.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: release
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
key: ${{ runner.os }}-bin
path: ./bin
- id: meta
name: Docker meta
uses: docker/metadata-action@v5
with:
images: |
quay.io/3scale/bank-vaults-helm-operator
tags: |
type=semver,pattern={{raw}}
- id: meta-bundle
name: Docker meta for the bundle image
uses: docker/metadata-action@v5
with:
images: |
quay.io/3scale/bank-vaults-helm-operator-bundle
tags: |
type=semver,pattern={{raw}}
- id: meta-catalog
name: Docker meta for the catalog image
uses: docker/metadata-action@v5
with:
images: |
quay.io/3scale/bank-vaults-helm-operator-catalog
tags: |
type=semver,pattern={{raw}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Export release name
run: |
echo "NEW_RELEASE=$(make get-new-release)" >> $GITHUB_ENV
- name: Login to quay.io/3scale
uses: docker/login-action@v3
with:
password: ${{ secrets.REGISTRY_PASSWORD }}
registry: quay.io
username: ${{ secrets.REGISTRY_USER }}
- name: Donwload helm chart
run: make download-helm-chart
- name: Build and push operator
uses: docker/build-push-action@v6
with:
file: Dockerfile
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
provenance: false
push: true
tags: ${{ steps.meta.outputs.tags }}
- name: Build and push bundle
uses: docker/build-push-action@v6
with:
file: bundle.Dockerfile
labels: ${{ steps.meta-bundle.outputs.labels }}
platforms: linux/amd64,linux/arm64
provenance: false
push: true
tags: ${{ steps.meta-bundle.outputs.tags }}
- name: Generate catalog Dockerfile
run: make catalog-generate
- name: Build and push catalog
uses: docker/build-push-action@v6
with:
file: catalog.Dockerfile
labels: ${{ steps.meta-catalog.outputs.labels }}
platforms: linux/amd64,linux/arm64
provenance: false
push: true
tags: ${{ steps.meta-catalog.outputs.tags }}
- name: Create a new draft-release in github
uses: "marvinpinto/action-automatic-releases@latest"
with:
automatic_release_tag: ${{ steps.meta.outputs.tags }}
draft: true
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: ${{ steps.meta.outputs.tags }}