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

Is there any way to customize pages-index-path and index-path? #183

Open
powerfooI opened this issue Mar 29, 2024 · 2 comments
Open

Is there any way to customize pages-index-path and index-path? #183

powerfooI opened this issue Mar 29, 2024 · 2 comments

Comments

@powerfooI
Copy link

powerfooI commented Mar 29, 2024

Version: chart-releaser-action@1.6.0

Chart releaser has two arguments pages-index-path and index-path while it seems that they are not supported by chart-releaser-action. Is there any way to read and update index information from other path instead of default ./index.yaml?

My situation is that I use a document framework to generate static site to gh-pages, which would overwrite the whole branch including the index.yaml. So I need to update and put the index.yaml at the site's static/ folder on other branch.

$ cr index --help
Update a Helm chart repository index.yaml file based on a the
given GitHub repository's releases.

Usage:
  cr index [flags]

Flags:
   ...
  -i, --index-path string              Path to index file (default ".cr-index/index.yaml")
  -o, --owner string                   GitHub username or organization
  -p, --package-path string            Path to directory with chart packages (default ".cr-release-packages")
      --pages-branch string            The GitHub pages branch (default "gh-pages")
      --pages-index-path string        The GitHub pages index path (default "index.yaml")
   ...
Global Flags:
      --config string   Config file (default is $HOME/.cr.yaml)
$ cr version

GitVersion:  v1.6.1
GitCommit:   0102fa30dd78df0d0f8093c4607e6080972ff82d
BuildDate:   2023-10-31T07:28:18Z
GoVersion:   go1.20.10
Compiler:    gc
Platform:    darwin/arm64
License:     Apache 2.0
@powerfooI powerfooI changed the title Is there any way to custom pages-index-path and index-path? Is there any way to customize pages-index-path and index-path? Mar 29, 2024
@masayag
Copy link

masayag commented Mar 31, 2024

Another motivation for this is when relying on the GitHub pages feature, there is an option to select /root or /docs as a source for the GitHub pages. While things work smoothly for /root, creating a working repository with /docs fails.

@masayag
Copy link

masayag commented Mar 31, 2024

Thank you @powerfooI.
I missed the reference to your PR and published the same fix. I wish to see this one getting merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants