Code Monkey home page Code Monkey logo

helm-gh-pages's Introduction

Helm Publisher

A GitHub Action for publishing Helm charts with Github Pages.

Usage

Inputs:

  • token The GitHub token with write access to the target repository
  • charts_dir The charts directory, defaults to charts
  • charts_url The GitHub Pages URL, defaults to https://<OWNER>.github.io/<REPOSITORY>
  • owner The GitHub user or org that owns this repository, defaults to the owner in GITHUB_REPOSITORY env var
  • repository The GitHub repository, defaults to the GITHUB_REPOSITORY env var
  • branch The branch to publish charts, defaults to gh-pages
  • target_dir The target directory to store the charts, defaults to .
  • helm_version The Helm CLI version, defaults to the latest release
  • linting Toggle Helm linting, can be disabled by setting it to off
  • commit_username Explicitly specify username for commit back, default to GITHUB_ACTOR
  • commit_email Explicitly specify email for commit back, default to [email protected]
  • app_version Explicitly specify app version in package. If not defined then used chart values.
  • chart_version Explicitly specify chart version in package. If not defined then used chart values.
  • index_dir The location of index.yaml file in the repo, defaults to the same value as target_dir
  • enterprise_url The URL of enterprise github server in the format <server-url>/<organisation>

Examples

Package and push all charts in ./charts dir to gh-pages branch:

name: release
on:
  push:
    tags: '*'

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Publish Helm charts
        uses: stefanprodan/helm-gh-pages@master
        with:
          token: ${{ secrets.GITHUB_TOKEN }}

Package and push charts in ./chart dir to gh-pages branch in a different repository:

name: release-chart
on:
  push:
    tags: 'chart-*'

jobs:
  release-chart:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Publish Helm chart
        uses: stefanprodan/helm-gh-pages@master
        with:
          token: ${{ secrets.BOT_GITHUB_TOKEN }}
          charts_dir: chart
          charts_url: https://charts.fluxcd.io
          owner: fluxcd
          repository: charts
          branch: gh-pages
          target_dir: charts
          commit_username: johndoe
          commit_email: [email protected]

Package chart with specified chart & app versions and push all charts in ./charts dir to gh-pages branch:

name: release
on:
  push:
    tags: '*'

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Publish Helm charts
        uses: stefanprodan/helm-gh-pages@master
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          app_version: 1.16.0
          chart_version: 0.1.0

helm-gh-pages's People

Contributors

stefanprodan avatar steven-sheehy avatar ahmedwaleedmalik avatar clenimar avatar josedev-union avatar rohilsurana avatar wojcikmm avatar aslafy-z avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.