From e0e268401ff71fa12b8f671cfc3627bbd76dffd6 Mon Sep 17 00:00:00 2001 From: Manish Date: Sat, 24 Jul 2021 17:03:45 +0530 Subject: [PATCH] Add chart releaser --- .github/workflows/helm-chart-release.yml | 29 ++++++++++++++++++++++++ deployment/chart/README.md | 20 ++++++++++++++++ deployment/chart/artifacthub-repo.yml | 15 ++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 .github/workflows/helm-chart-release.yml create mode 100644 deployment/chart/README.md create mode 100644 deployment/chart/artifacthub-repo.yml diff --git a/.github/workflows/helm-chart-release.yml b/.github/workflows/helm-chart-release.yml new file mode 100644 index 0000000..4e0f2bd --- /dev/null +++ b/.github/workflows/helm-chart-release.yml @@ -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 }}" diff --git a/deployment/chart/README.md b/deployment/chart/README.md new file mode 100644 index 0000000..ee89193 --- /dev/null +++ b/deployment/chart/README.md @@ -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 \ No newline at end of file diff --git a/deployment/chart/artifacthub-repo.yml b/deployment/chart/artifacthub-repo.yml new file mode 100644 index 0000000..3c44d7d --- /dev/null +++ b/deployment/chart/artifacthub-repo.yml @@ -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