Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve/GitHub workflows2 #26

Merged
merged 4 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# .github/release.yml

changelog:
categories:
- title: Bug Fixes 🐛
labels:
- bug
- title: Breaking Changes 🛠
labels:
- Semver-Major
- breaking-change
- title: Exciting New Features 🎉
labels:
- Semver-Minor
- enhancement
- title: Other Changes
labels:
- "*"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Container Image
name: Build and Release

on:
push:
Expand Down Expand Up @@ -34,6 +34,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

build-push-bundle:
needs: build-push-docker
name: build-push-bundle
runs-on: ubuntu-latest
env:
Expand All @@ -49,4 +50,30 @@ jobs:
TAG_VERSION=${{ github.ref_name }}
# remove "v" character at the first of the version.
VERSION="${TAG_VERSION#v}"
make bundle bundle-build bundle-push IMAGE_TAG_BASE=ghcr.io/${{ github.repository }} VERSION=$VERSION IMG=ghcr.io/${{ github.repository }}:$TAG_VERSION
make bundle bundle-build bundle-push IMAGE_TAG_BASE=ghcr.io/${{ github.repository }} VERSION=$VERSION IMG=ghcr.io/${{ github.repository }}:$TAG_VERSION

helm-chart:
name: helm-chart
needs: build-push-docker
runs-on: ubuntu-latest
steps:
- name: helmify
run: make helm
- name: Chart | Push
uses: appany/helm-oci-chart-releaser@v0.3.0
with:
name: s3-operator
repository: helm-charts/s3-operator
tag: ${{ github.ref_name }}
path: charts/s3-operator # Default charts/{name}
registry: ghcr.io
registry_username: ${{ github.repository_owner }}
registry_password: ${{ secrets.GITHUB_TOKEN }}

release:
needs: build-push-docker
name: release
runs-on: ubuntu-latest
steps:
- name: release
run: gh release create ${{ github.ref_name }} --generate-notes --verify-tag
31 changes: 0 additions & 31 deletions .github/workflows/release.yaml

This file was deleted.

File renamed without changes.
therealak12 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.0
version: 0.2.4
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
File renamed without changes.