Skip to content

Commit 084c4a9

Browse files
authored
Switch to publishing helm charts with OCI (#51)
1 parent 9ea3690 commit 084c4a9

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/publish.yaml renamed to .github/workflows/release.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: publish
1+
name: release
22
on:
33
release:
44
types: [published]
@@ -10,16 +10,18 @@ jobs:
1010
steps:
1111
- name: Clone repo
1212
uses: actions/checkout@v2
13+
- name: Install Helm
14+
uses: azure/setup-helm@v1
1315
- name: Get GitHub Tag
1416
id: get_tag
1517
run: |
1618
echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
1719
- name: Publish Helm charts
18-
uses: stefanprodan/helm-gh-pages@master
19-
with:
20-
token: ${{ secrets.GITHUB_TOKEN }}
21-
chart_version: ${{ steps.get_tag.outputs.tag }}
22-
app_version: ${{ steps.get_tag.outputs.tag }}
20+
run: |
21+
cd charts
22+
helm registry login -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
23+
helm package --app-version ${{ steps.get_tag.outputs.tag }} --version ${{ steps.get_tag.outputs.tag }} git-auth-proxy
24+
helm push git-auth-proxy-${{ steps.get_tag.outputs.tag }}.tgz oci://ghcr.io/xenitab/helm-charts
2325
image:
2426
runs-on: ubuntu-latest
2527
steps:
@@ -54,7 +56,7 @@ jobs:
5456
with:
5557
registry: ghcr.io
5658
username: ${{ github.repository_owner }}
57-
password: ${{ secrets.CR_PAT }}
59+
password: ${{ secrets.GITHUB_TOKEN }}
5860
- name: Build and push container (multi arch)
5961
uses: docker/build-push-action@v2
6062
with:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ configuration file. Note that the project field is not required when using GitHu
8282
Add the Helm repository and install the chart, be sure to set the config content.
8383

8484
```shell
85-
helm repo add https://xenitab.github.io/git-auth-proxy/
86-
helm install git-auth-proxy --set config=<config-json>
85+
kubectl create namespace git-auth-proxy
86+
helm upgrade --install --version <version> git-auth-proxy oci://ghcr.io/xenitab/helm-charts/git-auth-proxy
8787
```
8888

8989
There should now be a `git-auth-proxy` Deployment and Service in the cluster, ready to proxy traffic.

0 commit comments

Comments
 (0)