muhammednagy / helm-push-action

This action package a helm chart and publish it to your chartmuseum.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'
        CHARTMUSEUM_URL: 'https://chartmuseum.url'

Configuration

The following settings must be passed as environment variables as shown in the example. Sensitive information, especially CHARTMUSEUM_USER and CHARTMUSEUM_PASSWORD, should be set as encrypted secrets — otherwise, they'll be public to anyone browsing your repository.

Key Value Suggested Type Required
CHART_FOLDER Folder with charts in repo env Yes
CHARTMUSEUM_URL Chartmuseum url env Yes
SOURCE_DIR The local directory you wish to upload. For example, ./charts. Defaults to the root of your repository (.) if not provided. 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

Action versions

  • v2: helm v2.17.0
  • v3: helm3 v3.7.2

License

This project is distributed under the MIT license.

About

This action package a helm chart and publish it to your chartmuseum.


Languages

Language:Smarty 53.9%Language:Dockerfile 28.6%Language:Shell 17.5%