You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm doing something wrong here, but I needed to manually create the .cr-index folder for the cr index command to work.
This is what I did:
$ docker run --rm --entrypoint=sh -it -v $PWD:/app quay.io/helmpack/chart-releaser:v1.4.0/app # cr package chartSuccessfully packaged chart in /app/chart and saved it to: .cr-release-packages/gatekeeper-policy-manager-0.2.0.tgz/app # cr index --owner sighupio --git-repo gatekeeper-policy-managerLoading index file from git repository .cr-index/index.yamlPreparing worktree (detached HEAD e1f5fee)HEAD is now at e1f5fee Clean branch for Helm Chart Repository with GitHub PagesFound gatekeeper-policy-manager-0.2.0.tgzExtracting chart metadata from .cr-release-packages/gatekeeper-policy-manager-0.2.0.tgzCalculating Hash for .cr-release-packages/gatekeeper-policy-manager-0.2.0.tgzUpdating index .cr-index/index.yamlError: open .cr-index/index.yaml3862730865: no such file or directoryUsage: cr index [flags]Flags: -b, --git-base-url string GitHub Base URL (only needed for private GitHub) (default "https://api.github.com/") -r, --git-repo string GitHub repository -u, --git-upload-url string GitHub Upload URL (only needed for private GitHub) (default "https://uploads.github.com/") -h, --help help for index -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") --pr Create a pull request for index.yaml against the GitHub Pages branch (must not be set if --push is set) --push Push index.yaml to the GitHub Pages branch (must not be set if --pr is set) --release-name-template string Go template for computing release names, using chart metadata (default "{{ .Name }}-{{ .Version }}") --remote string The Git remote used when creating a local worktree for the GitHub Pages branch (default "origin") -t, --token string GitHub Auth Token (only needed for private repos)Global Flags: --config string Config file (default is $HOME/.cr.yaml)/app # cat .cr-index/index.yamlcat: can't open '.cr-index/index.yaml': No such file or directory/app # mkdir .cr-index/app # cr index --owner sighupio --git-repo gatekeeper-policy-managerLoading index file from git repository .cr-index/index.yamlPreparing worktree (detached HEAD e1f5fee)HEAD is now at e1f5fee Clean branch for Helm Chart Repository with GitHub PagesFound gatekeeper-policy-manager-0.2.0.tgzExtracting chart metadata from .cr-release-packages/gatekeeper-policy-manager-0.2.0.tgzCalculating Hash for .cr-release-packages/gatekeeper-policy-manager-0.2.0.tgzUpdating index .cr-index/index.yaml/app # cat .cr-index/index.yamlapiVersion: v1entries: gatekeeper-policy-manager:[...] # truncated output
EDIT: I got the same behaviour in CI and locally.
The text was updated successfully, but these errors were encountered:
ralgozino
changed the title
.cr-index folder must be created manually
.cr-index folder must be manually created
May 12, 2022
Hello!
Maybe I'm doing something wrong here, but I needed to manually create the
.cr-index
folder for thecr index
command to work.This is what I did:
EDIT: I got the same behaviour in CI and locally.
The text was updated successfully, but these errors were encountered: