Build and release Helm packages on s3 repositories using Github Actions.
Instructions on how to set up a S3 bucket as a helm chart repository: https://andrewlock.net/how-to-create-a-helm-chart-repository-using-amazon-s3/.
- 0.3: Added an option to specify the
helm-s3plugin version. Defaults to the latest GitHub release but allows users to override it. - 0.2: Add an option for Relative URLs Thanks to this PR @aztechian
- 0.1: Initial release
Using aws-actions/configure-aws-credentials@v1 action to configure S3 access:
name: Release
on: [push]
jobs:
build:
name: Chart release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- name: Helm release
uses: shellbear/[email protected]
with:
repo: s3://s3-bucket-example/
chart: ./deployment/helm
helmS3Version: "0.16.2" # Optional, specify Helm S3 plugin versionrepo: The S3 Helm repository bucket URL.
version: Override Helm chart version.chart: Helm chart path. (default:./)forceRelease: If set tofalseand the chart already exists, exit normally and do not trigger an error. (default:true).packageExtraArgs: Helm package command extra arguments.relativeUrls: Helm-s3 push option for creating URLs that are relative to the Index location. By default, URLs are the full path usings3://protocol. If you intend to serve your Helm repository via http(s), you should enable this option. (default:false)helmS3Version: (New in v0.3) Specify thehelm-s3plugin version to install. Defaults to the latest GitHub release.