This action package a helm chart and publish it to your chartmuseum.
Helm push action
This action package helm chart and publish it to your chartmuseum.
Usage
workflow.yml Example
Place in a .yml file such as this one in your .github/workflows folder. Refer to the documentation on workflow YAML syntax here.
name: Build & Push ecs-exporter chart
on: push
jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - uses: goodsmileduck/helm-push-action@v2 env: SOURCE_DIR: '.' CHART_FOLDER: 'ecs-exporter' FORCE: 'True' SKIP_SECURE: 'False' CHARTMUSEUM_URL: 'https://chartmuseum.url' CHARTMUSEUMUSER: '${{ secrets.CHARTMUSEUMUSER }}' CHARTMUSEUMPASSWORD: ${{ secrets.CHARTMUSEUMPASSWORD }}
Configuration
The following settings must be passed as environment variables as shown in the example. Sensitive information, especially CHARTMUSEUMUSER and CHARTMUSEUMPASSWORD, should be set as encrypted secrets — otherwise, they'll be public to anyone browsing your repository.
| Key | Value | Suggested Type | Required | | ------------- | ------------- | ------------- | ------------- | | CHARTMUSEUM_URL | Chartmuseum url | env | Yes | | CHARTMUSEUM_USER | Username for chartmuseum | secret | Yes | | CHARTMUSEUM_PASSWORD | Password for chartmuseum | secret | Yes | | SKIP_SECURE | Allowing to push using insecure connection | env | No | | FORCE | Force chart upload (in case version exist in chartmuseum, upload will fail without FORCE). Defaults is False if not provided. | env | No | | SOURCEDIR | The local directory you wish to upload. If your chart is in nested folder, SOURCEDIR should be the path from root to the last folder before the one that stores the chart. For example, if your chart is in ./charts/app, the SOURCE_DIR is ./charts/. Defaults to the root of your repository (.) if not provided. | env | No | | CHARTFOLDER | Folder with charts in repo. This should be the name of the folder where the chart is in. For example, if your chart is in ./charts/app, the CHARTFOLDER is app | env | Yes |
OBS.: Be aware that SOURCEDIR+CHARTFOLDER should be the path of the directory where your Chart.yaml file is in.
Action versions
- v2: helm v2.17.0
- v3: helm3 v3.7.2
License
This project is distributed under the MIT license.