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

feat: add workflow to release helm chart #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Charts

on:
push:
branches:
- main
paths:
- 'charts/**'

jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"

- name: Install Helm
uses: azure/setup-helm@v3

- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
10 changes: 4 additions & 6 deletions charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ $ helm install -f examples/override.yaml sendgrid-stats-exporter ./

### Remote

[helm-git](https://github.com/aslafy-z/helm-git) plugin is required.

```
$ helm repo add sendgrid-stats-exporter 'git+https://github.com/chatwork/sendgrid-stats-exporter@charts?ref=0.0.8'
$ helm install -f examples/override.yaml sendgrid-stats-exporter
$ helm repo add sendgrid-stats-exporter 'https://chatwork.github.io/sendgrid-stats-exporter'
$ helm install -f examples/override.yaml sendgrid-stats-exporter/sendgrid-stats-exporter
```

### Test
### Test

```
$ kubectl get svc
Expand Down Expand Up @@ -76,4 +74,4 @@ The following table lists the configurable parameters of the Sendgrid-stats-expo
| `affinity` | Node/Pod affinities | `{}` |

---
_Documentation generated by [Frigate](https://frigate.readthedocs.io)._
_Documentation generated by [Frigate](https://frigate.readthedocs.io)._