Docker login failed, only PR trigger

docker
script

#1

I use own docker image of DockerHub private registry.

My docker image is private, need login.

Code push and Bitrise CLI are success login docker registry, but PR requests is fail login docker registry.

Error message is

$ docker login -u $USERNAME -p $PASSWORD
Error: Cannot perform an interactive login from a non TTY device

I think maybe bash is suspicious.

Code push https://www.bitrise.io/build/94c830a653dde683
PR requests https://www.bitrise.io/build/f73f3f05e956a17f

Sorry poor english.


#2

Hi @sakebook,

You most likely specified those env vars in Secrets. As noted on the UI, right now Secrets are never exposed for pull request builds. Please see: Exact same workflow fails with PR event as opposed to push event/manual run

If you’d want to be able to specify which secrets can be exposed for pull request builds, please vote & comment on this #feature-request : Secret Env Vars and (Generic) File Storage files: control whether it’s available in Pull Request builds

And of course if you have any questions just let us know! :wink:


#3

Thank you reply!

I see. I was misunderstanding the problem. And I missed the note.

I voted :thumbsup:


#4

No problem at all and thank you! :wink: