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

build: Fix index.yaml generation #63

Merged
merged 1 commit into from
Apr 4, 2024
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
8 changes: 5 additions & 3 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ runs:
- name: Package the helm chart
shell: bash
run: make package
run: |
mkdir -p new_chart
helm package -d new_chart .
- name: Generate updated index.yaml
shell: bash
run: helm repo index . --url https://launchdarkly.github.io/ld-relay-helm --merge helm-repo/index.yaml
run: helm repo index new_chart --url https://launchdarkly.github.io/ld-relay-helm --merge helm-repo/index.yaml
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging with a direct subdirectory prefixes the paths with that subdirectory. Instead, we should package into a completely separate folder and merge with a folder from a separate hierarchy.


- name: Move files into publishable directory
shell: bash
run: mv ${{ steps.version.outputs.ARTIFACT }} index.yaml helm-repo
run: mv new_chart/${{ steps.version.outputs.ARTIFACT }} new_chart/index.yaml helm-repo

- name: Publish to GitHub pages
if: ${{ inputs.dry_run == 'false' }}
Expand Down