Skip to content

Commit

Permalink
Merge pull request #693 from aramase/chart-workflow
Browse files Browse the repository at this point in the history
ci: add workflow for publishing helm charts
  • Loading branch information
k8s-ci-robot authored Aug 18, 2021
2 parents 8f05460 + 74f537c commit 0609d63
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: publish_helm_chart

on:
push:
branches:
- main
- master
paths:
- ".github/workflows/chart.yaml"
- "charts/**"

# List of all permissions: https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token
# We need write permission for contents to be able to publish the chart
permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Publish Helm chart
# pinning to the sha f1701eb82e4d4b82016e7965501c8b6d79feaec9 from https://github.com/stefanprodan/helm-gh-pages/releases/tag/v1.4.1
uses: stefanprodan/helm-gh-pages@f1701eb82e4d4b82016e7965501c8b6d79feaec9
with:
# GitHub automatically creates a GITHUB_TOKEN secret to use in your workflow. You can use the GITHUB_TOKEN to authenticate in a workflow run.
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
token: ${{ secrets.GITHUB_TOKEN }}
charts_dir: charts
target_dir: charts
linting: off
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,6 @@ promote-staging-manifest: #promote staging manifests to release dir
@cp -r manifest_staging/deploy .
@rm -rf charts/secrets-store-csi-driver
@cp -r manifest_staging/charts/secrets-store-csi-driver ./charts
@mkdir -p ./charts/tmp
@helm package ./charts/secrets-store-csi-driver -d ./charts/tmp/
@helm repo index ./charts/tmp --url https://raw.githubusercontent.com/kubernetes-sigs/secrets-store-csi-driver/master/charts --merge ./charts/index.yaml
@mv ./charts/tmp/* ./charts
@rm -rf ./charts/tmp

## --------------------------------------
## Local
Expand Down

0 comments on commit 0609d63

Please sign in to comment.