Skip to content

Commit afd015c

Browse files
authored
Refactor/release workflow (#26)
* add release and automated change log * changed helm chart release to OCI mode * add helmify step * fix chart version
1 parent b71aeb3 commit afd015c

26 files changed

+47
-33
lines changed

.github/release.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# .github/release.yml
2+
3+
changelog:
4+
categories:
5+
- title: Bug Fixes 🐛
6+
labels:
7+
- bug
8+
- title: Breaking Changes 🛠
9+
labels:
10+
- Semver-Major
11+
- breaking-change
12+
- title: Exciting New Features 🎉
13+
labels:
14+
- Semver-Minor
15+
- enhancement
16+
- title: Other Changes
17+
labels:
18+
- "*"

.github/workflows/build.yaml renamed to .github/workflows/build-release.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Container Image
1+
name: Build and Release
22

33
on:
44
push:
@@ -34,6 +34,7 @@ jobs:
3434
labels: ${{ steps.meta.outputs.labels }}
3535

3636
build-push-bundle:
37+
needs: build-push-docker
3738
name: build-push-bundle
3839
runs-on: ubuntu-latest
3940
env:
@@ -49,4 +50,30 @@ jobs:
4950
TAG_VERSION=${{ github.ref_name }}
5051
# remove "v" character at the first of the version.
5152
VERSION="${TAG_VERSION#v}"
52-
make bundle bundle-build bundle-push IMAGE_TAG_BASE=ghcr.io/${{ github.repository }} VERSION=$VERSION IMG=ghcr.io/${{ github.repository }}:$TAG_VERSION
53+
make bundle bundle-build bundle-push IMAGE_TAG_BASE=ghcr.io/${{ github.repository }} VERSION=$VERSION IMG=ghcr.io/${{ github.repository }}:$TAG_VERSION
54+
55+
helm-chart:
56+
name: helm-chart
57+
needs: build-push-docker
58+
runs-on: ubuntu-latest
59+
steps:
60+
- name: helmify
61+
run: make helm
62+
- name: Chart | Push
63+
uses: appany/helm-oci-chart-releaser@v0.3.0
64+
with:
65+
name: s3-operator
66+
repository: helm-charts/s3-operator
67+
tag: ${{ github.ref_name }}
68+
path: charts/s3-operator # Default charts/{name}
69+
registry: ghcr.io
70+
registry_username: ${{ github.repository_owner }}
71+
registry_password: ${{ secrets.GITHUB_TOKEN }}
72+
73+
release:
74+
needs: build-push-docker
75+
name: release
76+
runs-on: ubuntu-latest
77+
steps:
78+
- name: release
79+
run: gh release create ${{ github.ref_name }} --generate-notes --verify-tag

.github/workflows/release.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)