Skip to content

Commit

Permalink
Annoyingly OCI repos aren't cached by helm/helmfile, switch to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Oct 4, 2023
1 parent 5811b3f commit 823c8e7
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/release-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write
contents: write

steps:
- name: Checkout
Expand All @@ -35,16 +34,15 @@ jobs:
run: |
sed -i 's/^version: \(.*\)$/version: \1-${{ github.sha }}/g' charts/housewatch/Chart.yaml
- name: Helm login
- name: Configure Git
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io -u $ --password-stdin
- name: Helm package
run: |
helm dependency update charts/housewatch/
helm package charts/housewatch
- name: Helm push
run: |
helm push housewatch-*.tgz oci://ghcr.io/posthog/housewatch/charts
git config user.name "Max Hedgehog"
git config user.email "127861667+max-hedgehog[bot]@users.noreply.github.com"
- name: Run chart-releaser
uses: helm/chart-releaser-action@ed43eb303604cbc0eeec8390544f7748dc6c790d
if: github.repository == 'PostHog/HouseWatch'
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
skip_existing: true

0 comments on commit 823c8e7

Please sign in to comment.