From 378155cf04b563ee6efdaebe6259e9bb2a0f6bd0 Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 2 Sep 2022 22:56:20 +1200 Subject: [PATCH] Add helm chart publishing workflow (#18) Signed-off-by: David Young Signed-off-by: David Young Co-authored-by: Julien Duchesne --- .../workflows/on-push-main-publish-chart.yml | 31 +++++++++++++++++++ charts/k6-loadtester/Chart.yaml | 4 +-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/on-push-main-publish-chart.yml diff --git a/.github/workflows/on-push-main-publish-chart.yml b/.github/workflows/on-push-main-publish-chart.yml new file mode 100644 index 0000000..ab1f2eb --- /dev/null +++ b/.github/workflows/on-push-main-publish-chart.yml @@ -0,0 +1,31 @@ +name: Publish helm chart + +on: + push: + branches: + - main + paths: + - 'charts/**' + - '.github/workflows/on-push-main-publish-chart.yml' + workflow_dispatch: + +jobs: + publish-chart: + + 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 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/charts/k6-loadtester/Chart.yaml b/charts/k6-loadtester/Chart.yaml index 3eb9106..d77bb11 100644 --- a/charts/k6-loadtester/Chart.yaml +++ b/charts/k6-loadtester/Chart.yaml @@ -16,5 +16,5 @@ maintainers: - name: julienduchesne annotations: artifacthub.io/changes: |- - - kind: updated - description: Support initContainers and arbitrary volumes \ No newline at end of file + - kind: added + description: Initial release