javascript - CircleCI - 由于只读 key ,在构建阶段推送到 github 失败

标签 javascript build circleci

我正在尝试将成功的构建推送到 github,但 CircleCI 提醒我 github 的 key 是只读的。我能做什么?

enter image description here

Github key 是只读的,但不能更改,它是由 circleCI 创建的:

enter image description here

我的 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 .即添加一个私钥来圈子项目设置。

关于javascript - CircleCI - 由于只读 key ,在构建阶段推送到 github 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33890836/

相关文章:

build - 找不到要作为输入文件资源嵌入的概念架构节点

postgresql - 如何使用 SSL/TLS 在 CircleCI 中运行 PostgreSQL?

javascript - 如果另一个 div 的高度大于值(使用 jquery),则移动一个 div

javascript - 将类别应用于选定的 LI 和所有以前的 LI

javascript - 根据文本内容重新排列 DOM 元素

javascript - 滚动文本时在背景中显示图像

batch-file - 从批处理文件中按顺序运行多个 ant 构建

java - 如何在没有互联网访问权限的情况下使用 gradle?

android - React Native 迁移 - FaSTLane 构建仅在 CircleCI 上针对 iOS "Archive failed"失败

java - CircleCi : Multi module project fails to resolve dependency