作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 GitLab 设置 CI,但出现此构建错误:
[RuntimeException]
Failed to execute git clone --no-checkout 'git@***.git' '/builds/***' && cd '/builds/***' && git remote add composer 'git@***.git' && git fetch composer
Cloning into '/builds/***'...
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
{
"repositories": [
{
"type": "git",
"url": "git@***.git"
}],
}
最佳答案
我刚刚为此实现了一个解决方案,基于 https://docs.gitlab.com/ee/ci/ssh_keys/README.html以及 https://gitlab.com/gitlab-examples/ssh-private-key/blob/master/.gitlab-ci.yml 上的示例.
你基本上需要
before_script:
# install ssh-agent
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# run ssh-agent
- eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_PRIVATE_KEY")
# Set up project.
- composer install
关于gitlab-ci - 亚搏体育appCI : "Permission denied" when pulling private composer package,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44444727/
我正在开发一个系统,该系统基本上会记录本地体育俱乐部的结果,数据将包括结果、球队、比赛、球员之类的东西。 我只是想知道数据库设计的最佳解决方案是什么以及如何处理数据库中的“已删除”条目的普遍共识是什么
我是一名优秀的程序员,十分优秀!