Skip to content

Commit

Permalink
Merge pull request #43 from sabre1041/oci-support
Browse files Browse the repository at this point in the history
Added OCI support to release workflow
  • Loading branch information
cpanato authored Nov 29, 2021
2 parents d88a8c2 + cabcf5d commit 623b293
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,17 @@ jobs:
uses: helm/chart-releaser-action@v1.2.1
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Login to GitHub Container Registry
run: |
helm registry login --username ${GITHUB_ACTOR} --password ${{ secrets.GITHUB_TOKEN }} ghcr.io
env:
HELM_EXPERIMENTAL_OCI: 1

- name: Publish OCI Charts
run: |
for chart in `find .cr-release-packages -name '*.tgz' -print`; do
helm push ${chart} oci://ghcr.io/${GITHUB_REPOSITORY}
done
env:
HELM_EXPERIMENTAL_OCI: 1
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
[Helm](https://helm.sh) Charts to support the [Sigstore](https://sigstore.dev) project.


## Adding the Chart Repository
## Usage

Charts are available in the following formats:

* [Chart Repository](https://helm.sh/docs/topics/chart_repository/)
* [OCI Artifacts](https://helm.sh/docs/topics/registries/)

### Installing from the Chart Repository

The following command can be used to add the chart repository:

Expand All @@ -14,6 +21,22 @@ $ helm repo add sigstore https://sigstore.github.io/helm-charts
$ helm repo update
```

Once the chart has been added, install one of the available charts:

```shell
$ helm upgrade -i <release_name> sigstore/<chart_name>
```

### Installing from an OCI Registry

Charts are also available in OCI format. The list of available charts can be found [here](https://github.com/sigstore?tab=packages&repo_name=helm-charts).

Install one of the available charts:

```shell
$ helm upgrade -i oci://ghcr.io/sigstore/helm-charts/<chart_name> --version=<version>
```

## Charts

* [rekor](charts/rekor)
Expand Down
2 changes: 1 addition & 1 deletion charts/cosigned/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sources:
type: application

name: cosigned
version: v0.1.5
version: v0.1.6
appVersion: v1.3.1

maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/rekor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Part of the sigstore project, Rekor is a timestamping server and tr

type: application

version: 0.2.6
version: 0.2.7
appVersion: 0.3.0

keywords:
Expand Down

0 comments on commit 623b293

Please sign in to comment.