Skip to content

Commit

Permalink
Refactor/directories (#4)
Browse files Browse the repository at this point in the history
* refactor readme

* move rancher-metrics

* move caas-demoapp

* refactor workflow

* added needs param

* use markdown compliant headers
  • Loading branch information
JTaeuber authored Sep 9, 2024
1 parent bbbe0f9 commit 07f17a2
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/update-helm-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,20 @@ on:
types: [new-helm-chart-version]

jobs:
cleanup:
runs-on: ubuntu-latest
permissions: write-all

steps:
- name: Delete deployment
uses: strumwolf/delete-deployment-environment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
environment: github-pages
onlyRemoveDeployments: true
update-charts:
runs-on: ubuntu-latest
needs: cleanup
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -26,6 +38,8 @@ jobs:
- name: Update Index File
run: |
mkdir -p ${{ github.event.client_payload.chart }}
mv ${{ github.event.client_payload.chart }}*.tgz ${{ github.event.client_payload.chart }}
helm repo index --url https://caas-team.github.io/helm-charts/ .
git config user.name "github-actions"
git config user.email "[email protected]"
Expand Down
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
Helm chart repo for unintented Helm charts, and helper charts to apply configuration.
Helm chart repo for our public Helm charts, and helper charts to apply configuration.

Setup:
------
# Setup

* configure repo for Github pages, public endpoint is https://caas-team.github.io/helm-charts/

Usage:
------
# Usage

* put the chart packages into the repo
* (re-)create the repo index page
Expand All @@ -15,8 +13,7 @@ Usage:
helm repo index --url https://caas-team.github.io/helm-charts/ .
```

Content:
--------
# Content

* caas-demoapp
* [rancher-metrics/](charts/rancher-metrics) -
Expand All @@ -25,8 +22,7 @@ Content:
[(src)](https://github.com/caas-team/py-kube-downscaler)


Credits:
--------
# Credits

inspired by [@mattiaperi](https://medium.com/@mattiaperi/create-a-public-helm-chart-repository-with-github-pages-49b180dbb417)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 07f17a2

Please sign in to comment.