0

我是 Galaxy 的新手,我尝试在每次推送到我的 BitBucket 存储库时使用 BitBucket Pipelines 自动部署我的应用程序(这是一个在每次推送后运行 shell 命令的系统)。

问题是我无法在 Galaxy 中部署,因为 deploy 命令要求我提供 Galaxy 凭据。

我知道可以使用令牌来避免这个问题,但它只能使用 90 天。

有没有办法将我的凭据写入命令参数或环境变量?

这是我通过管道运行的命令:

DEPLOY_HOSTNAME=\"eu-west-1.galaxy.meteor.com\" meteor deploy \"mydomain.com\" --settings ./settings.json --allow-superuser

谢谢!

4

1 回答 1

0

You can use a Galaxy token to login which is valid for 90 days.

https://galaxy-guide.meteor.com/commands.html#login-token

In summary, to retrieve the token, run:

METEOR_SESSION_FILE=token.json meteor login

To login with the token, use:

METEOR_SESSION_FILE=token.json meteor deploy

于 2018-07-25T04:44:09.900 回答