CircleCI - 由于只读密钥,在构建阶段推送到 github 失败
CircleCI - pushing to github during build phase fails due to read-only key
我正在尝试将成功的构建推送到 github,但 CircleCI 提醒我 github 的密钥是只读的。我能做什么?
Github键是只读的,不能修改,由circleCI创建:
我的deploy_staging.sh:
#!/usr/bin/env bash
gulp
cd staging
git init
git checkout -b "staging"
git config user.name "circleci"
git config user.email "circleci@aaa.org.il"
git add . -A
git commit -m "build"
git remote add azure https://github.com/aaa/webogram.git
git push azure staging --force
Gulp 正在创建一个新目录 - "staging" - 并将项目构建到其中。然后我想将结果推送到 azure,所以我尝试使用一个新分支 ("staging") 并只将构建目录推送到它。
我今天在 this project 有同样的任务。
基本上您需要按照说明进行操作here。即添加一个私钥来圈子项目设置。
我正在尝试将成功的构建推送到 github,但 CircleCI 提醒我 github 的密钥是只读的。我能做什么?
Github键是只读的,不能修改,由circleCI创建:
我的deploy_staging.sh:
#!/usr/bin/env bash
gulp
cd staging
git init
git checkout -b "staging"
git config user.name "circleci"
git config user.email "circleci@aaa.org.il"
git add . -A
git commit -m "build"
git remote add azure https://github.com/aaa/webogram.git
git push azure staging --force
Gulp 正在创建一个新目录 - "staging" - 并将项目构建到其中。然后我想将结果推送到 azure,所以我尝试使用一个新分支 ("staging") 并只将构建目录推送到它。
我今天在 this project 有同样的任务。
基本上您需要按照说明进行操作here。即添加一个私钥来圈子项目设置。