Skip to content

Commit

Permalink
Add chart releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
itzmanish committed Jul 24, 2021
1 parent 58501b6 commit e0e2684
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/helm-chart-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Charts

on:
push:
branches:
- master
- gh-pages

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
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.1.0
with:
charts_dir: deployment
charts_repo_url: https://itzmanish.github.io/ecr-token-renew/deployment
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
20 changes: 20 additions & 0 deletions deployment/chart/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Usage

[Helm](https://helm.sh) must be installed to use the charts. Please refer to
Helm's [documentation](https://helm.sh/docs) to get started.

Once Helm has been set up correctly, add the repo as follows:

helm repo add itzmanish-gitops https://itzmanish.github.io/ecr-token-renew

If you had already added this repo earlier, run `helm repo update` to retrieve
the latest versions of the packages. You can then run `helm search repo
ecr-token-renew` to see the charts.

To install the ecr-token-renew chart:

helm install my-ecr-token-renew ecr-token-renew/ecr-token-renew

To uninstall the chart:

helm delete my-ecr-token-renew
15 changes: 15 additions & 0 deletions deployment/chart/artifacthub-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Artifact Hub repository metadata file
#
# Some settings like the verified publisher flag or the ignored packages won't
# be applied until the next time the repository is processed. Please keep in
# mind that the repository won't be processed if it has not changed since the
# last time it was processed. Depending on the repository kind, this is checked
# in a different way. For Helm http based repositories, we consider it has
# changed if the `index.yaml` file changes. For git based repositories, it does
# when the hash of the last commit in the branch you set up changes. This does
# NOT apply to ownership claim operations, which are processed immediately.
#
repositoryID: https://itzmanish.github.io/ecr-token-renew
owners: # (optional, used to claim repository ownership)
- name: itzmanish
email: itzmanish108@gmail.com

0 comments on commit e0e2684

Please sign in to comment.