简体   繁体   English

CircleCI - 在构建阶段推送到github由于只读密钥而失​​败

[英]CircleCI - pushing to github during build phase fails due to read-only key

I am trying to push a successful build to github but CircleCI alerts me that the key to github is readonly. 我正在尝试将成功的构建推送到github,但CircleCI警告我github的密钥是readonly。 What can I do? 我能做什么?

在此输入图像描述

The Github key is read-only but it cannot be changed and it was created by circleCI: Github密钥是只读的,但无法更改,它由circleCI创建:

在此输入图像描述

My deploy_staging.sh: 我的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 is creating a new directory - "staging" - and builds the project into it. Gulp正在创建一个新目录 - “staging” - 并将项目构建到其中。 I then want to push the outcome to azure so I am trying to use a new branch ("staging") and pushing only the build directory to it. 然后我想把结果推到azure所以我试图使用一个新的分支(“staging”)并只将build目录推送到它。

I had the same task today in this project . 今天我在这个项目中有同样的任务。

Basically you need to follow the instructions here . 基本上你需要按照这里的说明。 ie add a private key to circle project settings. 即添加私钥以圈选项目设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM