将web应用程序部署到travis-ci上的谷歌应用程序引擎 - travis要求输入密码 [英] deploy web application to google app engine on travis-ci - travis is asking for a password

查看:69
本文介绍了将web应用程序部署到travis-ci上的谷歌应用程序引擎 - travis要求输入密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在成功构建后(我在我的项目中使用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 在构建过程中。请参阅 gloud cli此处

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

请参阅 travis yml这里是一个完整的例子
与往常一样,在这里发布问题或者在github上发布额外的演练问题。

Please see the travis yml here for a full example As always, post questions either here or github for additional walk-through questions.

这篇关于将web应用程序部署到travis-ci上的谷歌应用程序引擎 - travis要求输入密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆