Skip to content

Commit

Permalink
feat(ci): chart release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Thuan Vo <thvo@redhat.com>
  • Loading branch information
tthvo committed Jun 22, 2023
1 parent 4eba807 commit f964ba7
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 85 deletions.
2 changes: 2 additions & 0 deletions .github/helm-release-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
release-name-template: "v{{ .Version }}"
release-notes-file: .github/release-notes.md
62 changes: 0 additions & 62 deletions .github/release-drafter.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- Release notes generated using configuration in .github/release.yml -->
17 changes: 17 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
changelog:
categories:
- title: '🚀 Features'
label: 'feat'
- title: '🔧 Fixes'
label: 'fix'
- title: '📄 Documentation'
label: 'docs'
- title: '⚙️ Maintenance'
labels:
- 'chore'
- 'ci'
- 'cleanup'
- 'perf'
- 'refactor'
- 'style'
- 'test'
27 changes: 27 additions & 0 deletions .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release Helm Chart

on:
workflow_dispatch:

jobs:
helm-release:
permissions:
contents: write
runs-on: ubuntu-latest
# if: ${{ github.repository_owner == 'cryostatio' }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
version: v1.5.0
charts_dir: charts
config: .github/helm-release-config.yml
23 changes: 0 additions & 23 deletions .github/workflows/release-drafter.yml

This file was deleted.

0 comments on commit f964ba7

Please sign in to comment.