Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annoyingly OCI repos aren't cached by helm/helmfile, switch to gh-pages #55

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading