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

fix: Push charts to GHCR requires login #2998

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

mkilchhofer
Copy link
Contributor

@mkilchhofer mkilchhofer commented Feb 27, 2024

Resolves #2481

OCI chart push was introduced by @jkroepke here:

But it fails due to missing docker login to GHCR.

I am a Argo helm maintainer and we use almost the identical code:
https://github.com/argoproj/argo-helm/blob/fa85e824f014ef7bf19163d4ecf7e9b8eb01f6b9/.github/workflows/publish.yml#L67C15-L82

/cc: @zanhsieh as you merged @jkroepke PRs in the past

@mkilchhofer mkilchhofer requested a review from a team as a code owner February 27, 2024 19:20
@CLAassistant
Copy link

CLAassistant commented Feb 27, 2024

CLA assistant check
All committers have signed the CLA.

@jkroepke
Copy link
Collaborator

But it fails due to missing docker login to GHCR.

Bruh, really? Thanks for finding this! I overlooked this. Of couse, we have the same code at kube-prometheus-stack, too.

https://github.com/prometheus-community/helm-charts/blob/88472183482b6b7e50a97df2c8286c7ede199eb3/.github/workflows/release.yaml#L45-L61

@mkilchhofer
Copy link
Contributor Author

Bruh, really?

yaaaa 🥳 😄

@zanhsieh
Copy link
Collaborator

zanhsieh commented Mar 1, 2024

@micahhausler
Now this repo required at least two approvers to merge by Grafana.

@PlayMTL
Copy link

PlayMTL commented Mar 12, 2024

Any updates here? I'm really interested in OCI Charts :)

@benoitschipper
Copy link

Same here, would love to be able to pull the charts through OCI directly so I can test the helm charts within kustomize when using flux/argocd :)

@jkroepke
Copy link
Collaborator

@Xtigyro @zalegrala Can someone of you please take a look here?

@mkilchhofer
Copy link
Contributor Author

if ! helm push "${pkg}" "oci:https://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts"; then
echo '::warning:: helm push failed!'
fi
helm push "${pkg}" "oci:https://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts"
Copy link
Contributor Author

@mkilchhofer mkilchhofer Apr 5, 2024

Choose a reason for hiding this comment

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

Just to be in sync with the classic workflow

helm repo add grafana https://grafana.github.io/helm-charts

Shall we change this also to oci:https://ghcr.io/${GITHUB_REPOSITORY_OWNER}/helm-charts

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would say, the "world" is using "charts", including prometheus-community, fluxcd, velero.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes but helm-charts already exists for other Grafana-labs projects
https://github.com/grafana/grafana-operator/pkgs/container/helm-charts%2Fgrafana-operator

Copy link
Collaborator

Choose a reason for hiding this comment

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

Then it makes sense!

@meysam81
Copy link

meysam81 commented Apr 6, 2024

any update on this? 🙏

Copy link
Contributor

@krajorama krajorama left a comment

Choose a reason for hiding this comment

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

LGTM, let's try this

@krajorama krajorama merged commit 1e803f8 into grafana:main Apr 8, 2024
6 checks passed
@benoitschipper
Copy link

Great Success! 🚀

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 this pull request may close these issues.

Configure Action access for OCI chart push
8 participants