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

OCI support #155

Open
Kent1 opened this issue Jan 17, 2022 · 1 comment
Open

OCI support #155

Kent1 opened this issue Jan 17, 2022 · 1 comment

Comments

@Kent1
Copy link

Kent1 commented Jan 17, 2022

We already use ECR (AWS) for publishing our docker images. I would like to use the same repository for publishing Helm charts.
Right now, OCI support is experimental in Helm but works already quite well.
Are there plans to support OCI repositories in this plugin ?

https://github.com/helm/community/blob/main/hips/hip-0006.md

@bademux
Copy link

bademux commented Oct 4, 2022

Any news on that?
https://helm.sh/blog/storing-charts-in-oci/

helm push demo-0.1.0.tgz oci://r.example.com/myuser

Update:
Task to push helm chart to OCI registry. Pass registry as dockerDestRegistry and username\password as jib.to.auth.username jib.to.auth.password

//https://helm.sh/blog/storing-charts-in-oci/
task helmPush(dependsOn: tasks.helmPackageMyChart) {
    description = 'Push to OCI registry'
    group = 'helm'
    doLast {
        if (project.hasProperty('jib.to.auth.username') && project.hasProperty('jib.to.auth.password')) {
            helm.execHelm('registry', 'login') {
                args(dockerDestRegistry)
                option('--username', project.property('jib.to.auth.username'))
                option('--password', project.property('jib.to.auth.password'))
            }
        }
        helm.execHelm('push', null) {
            args(tasks.helmPackageMyChart.packageFile.get() as String)
            args("oci://$dockerDestRegistry/${project.group.replace('.', '/')}")
        }
        helm.execHelm('registry', 'logout') {
            args(dockerDestRegistry)
        }
    }
}

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

No branches or pull requests

2 participants