问题描述
我试图在成功构建后(我在我的项目中使用maven)将一个web应用程序部署到谷歌应用程序引擎,并且travis-ci要求输入我的密码。我如何输入密码或指定其他地方?
I´m trying to deploy a web application to google app engine after successful build(I´m using maven on my project) and travis-ci is asking for my password. How can I input my password or specify somewhere else?
推荐答案
基于您给我们的有限信息,我猜这是在 gcloud预览应用程序部署
调用。
Based on the limited information you are giving us, I am guessing this is happening during the gcloud preview app deploy
call.
通常,docker TLS Verification需要一个Cert的本地公钥,这需要密码响应。通过使用 travis encrypt-file
api提供证书并调用 gcloud auth activate-service-account
在构建过程中。请参阅
Typically the docker TLS Verification will need a local public key for a Cert and this requires a passcode response. This situation can be avoided by providing the cert using the travis encrypt-file
api and calling gcloud auth activate-service-account
during the build. see gloud cli here
请参阅
与往常一样,在这里发布问题或者在github上发布额外的演练问题。
Please see the travis yml here for a full exampleAs always, post questions either here or github for additional walk-through questions.
这篇关于将web应用程序部署到travis-ci上的谷歌应用程序引擎 - travis要求输入密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!