47

drone 的 secret 无法读取

 5 years ago
source link: https://maiyang.me/post/2018-10-23-drone-secrets-not-working/?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

drone 如何配置 secret

在 drone 控制面板中直接使用 Secrets 中添加。

但是这里默认只支持 PUSH TAG DEPLOYMENT

drone client command

$ drone secret add --repository=yangwenmai/ratelimit --image=robertstettner/drone-codecov --event=pull_request --event=push --event=tag --name=codecov_token --value=xxx
$ drone secret update --repository=yangwenmai/ratelimit --image=robertstettner/drone-codecov --event=pull_request --event=push --event=tag --name=codecov_token --value=yyy

参考资料

  1. http://docs.drone.io/secrets-not-working/
  2. https://discourse.drone.io/t/secrets-not-working-0-8- 1 ⁄ 1101
  3. https://discourse.drone.io/t/solved-secrets-not-available-to-drone-exec-local/270/3
  4. http://docs.drone.io/cli-secret-add/
  5. http://docs.drone.io/cli-secret-update/

茶歇驿站

一个可以让你停下来看一看,在茶歇之余给你帮助的小站,这里的内容主要是后端技术,个人管理,团队管理,以及其他个人杂想。

y2iamqF.jpg!web


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK