diff --git a/Dockerfile b/Dockerfile index 17173b0..34860c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1 +1 @@ -FROM flownative/action-helm-release:1 +FROM flownative/action-helm-release:2 diff --git a/README.md b/README.md index 8fa360c..1d74686 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ # Helm Release Action -This Github action allows you to package and push [Helm](https://helm.sh) charts to a repository (for example, -[Chartmuseum](https://chartmuseum.com/)). +This GitHub action allows you to package and push [Helm](https://helm.sh) +charts to a OCI compatible repository (for example, +[Harbor](https://www.harbor.io)). -Note that this action uses a Helm 3 client. +Note that this action uses a Helm 3 client and Chart Museum is not supported +anymore. ## Example workflow @@ -20,36 +22,28 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Build Docker image - uses: flownative/action-docker-build@v1 - with: - tag_ref: ${{ github.ref }} - image_name: flownative/example-app - registry_password: ${{ secrets.GITHUB_TOKEN }} - + # Build container image ... helm-release: runs-on: ubuntu-latest needs: release steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Determine latest released version id: latest_version uses: flownative/action-git-latest-release@v1 - - name: Release Helm chart - uses: flownative/action-helm-release@v1 + uses: flownative/action-helm-release@v2 with: charts_folder: 'Helm' chart_name: 'example-app' chart_version: ${{ steps.latest_version.outputs.tag }} app_version: ${{ steps.latest_version.outputs.tag }} - repository_url: 'https://charts.example.com' - repository_user: '${{ secrets.CHARTMUSEUM_USER }}' - repository_password: '${{ secrets.CHARTMUSEUM_PASSWORD }}' + registry_host: 'harbor.example.com' + repository_path: 'my-charts' + repository_user: '${{ secrets.HARBOR_ROBOT_USER }}' + repository_password: '${{ secrets.HARBOR_ROBOT_PASSWORD }}' ```` ## Implementation Note diff --git a/action.yaml b/action.yaml index 1998fef..8200920 100644 --- a/action.yaml +++ b/action.yaml @@ -7,7 +7,7 @@ inputs: required: false default: '.' chart_name: - description: 'Name of the Helm chart' + description: 'Name of the Helm chart, to be used in the URI to push to. For example, `coffee-manager`' required: true default: '' chart_version: @@ -18,8 +18,12 @@ inputs: description: 'The tag / version to use as an app version. For example, `1.2.5-12`. A "v" prefix will be stripped automatically.' required: true default: '' - repository_url: - description: 'URL leading to the repository to push to. For instance: "https://charts.example.com"' + registry_host: + description: 'Host name of the OCI compatible registry. For instance: "harbor.example.com"' + required: true + default: '' + repository_path: + description: 'Relative path leading to the repository to push to. For instance: "acme-charts"' required: true default: '' repository_user: