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

Setting repository credentials with -P not working #179

Open
bsgrd opened this issue Mar 4, 2024 · 1 comment
Open

Setting repository credentials with -P not working #179

bsgrd opened this issue Mar 4, 2024 · 1 comment

Comments

@bsgrd
Copy link

bsgrd commented Mar 4, 2024

Hi,
I'm trying to publish my charts to chartmuseum with the helmPublish command.
I have set up my build.gradle like below, but can't get it to read the properties form command line like this:
./gradlew helmPublish -Pchartmuseum_username=myuser -Pchartmuseum_password=mypass

helm {
    ...
    publishing {
        repositories {
            chartMuseum('mycharts') {
                url = uri('// removed')
                credentials {
                    username = findProperty('chartmuseum_username')
                    password = "findProperty('chartmuseum_password')
                }
            }
        }
    }
}

I have also tried a variety of other methods like "${chartmuseum_username}", getProeprty('chartmuseum_username'), System.property('chartmuseum_username') and so on. None have worked for me.

If I insert my username and password directly in the build.gradle file, it works fine. It also works fine if I define chartmuseum_username and chartmuseum_password in my global gradle.properties file.

Any idea what's going on? I'm using the exact same approach for publishing maven artifacts, and that works fine.

@JamieSlome
Copy link

JamieSlome commented Apr 10, 2024

Hey @bsgrd 👋

Just a heads up that this codebase is no longer actively maintained. As the original author recommends, you are welcome to open an issue here instead.

Our maintainers and contributors will be happy to support! ❤️

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