Skip to content

Commit

Permalink
Merge pull request #1 from flownative/feature/oci
Browse files Browse the repository at this point in the history
Support OCI registries and remove support for Chart Museum
  • Loading branch information
robertlemke authored Sep 16, 2024
2 parents aeef3c5 + d0d4704 commit 62258d8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM flownative/action-helm-release:1
FROM flownative/action-helm-release:2
30 changes: 12 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down
10 changes: 7 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 62258d8

Please sign in to comment.