当我运行手动作业时,我想将一个手动作业添加到我的拉请求中,以标记我的源分支。此标记将在我的位上升配置上触发生成。
然而,当我试图推送我的标签时,我正面临着这个问题。注意:我想把我的标签推到的分支没有受到保护。
$ git checkout $CI_COMMIT_REF_NAME
Switched to a new branch 'feature/gitlab-ci'
Branch feature/gitlab-ci set up to track remote branch feature/gitlab-ci from origin.
$ git tag build-bitri
我已经创建了一个简单的提交后脚本:
#!/bin/bash
# Update server when any user commit some changes
# This ssh connection execute a script with sudo that pull git server repo
ssh -i /var/opt/gitlab/.ssh/git_new git@ipaddress "sudo /home/git/pull.sh"
echo "Finished hook execution" >> /tmp/hook_lo
通常,我在.gitlab-ci.yml中执行以下任务,以便通过SSH在远程服务器上执行命令:
# The job
deploy:
script:
# I've omitted the SSH setup here
- |
ssh gitlab@example.com "
# Makes the server print the executed commands to stdout. Otherwise only the command output is printed. Required for monitoring and
由于某些原因,当我试图在我们的临时服务器上注册一个runner时,我一直收到“无法注册这个runner。可能您的SSH密钥无效或者您有网络问题”的错误。
我在同一台服务器上安装了Gitlab 6.3和Gitlab CI 4.0协调器,并且正在尝试将runner安装在单独的临时服务器上。Gitlab CI协调器端似乎正在工作。我可以登录CI站点,它会看到我的Gitlab存储库,我可以将项目添加到Gitlab CI站点上的CI中。
我之前遇到的一个问题是,我在运行Gitlab 6.1时安装了Gitlab CI 4.0,然后才意识到Gitlab 6.3是Gitlab CI 4.0的前提条件。然后我将
目前,我正与一个朋友合作一个项目,这个项目是在GitHub上托管的。我个人想拥有CI,所以我使用我的GitLab凭证登录到GitHub,并导入了我的所有回复。这个回购实际上是他的,但他把我作为一个合作者。所以,现在我想添加.gitlab-ci.yml,让我的推到GitLab也去GitHub。
我想镜像这个GH回购。当我去GitLab回购设置时,我看到它已经被HTTPS镜像(拉)了。但是我有一个橙色的盒子,上面有Disabled文本。当我把鼠标移到上面的时候,它会说这样的话:Disabled mirrors can only be enabled by instance owners [...]
我过去曾使用Gitlab页面进行反应部署,除了VueJS之外,它们工作得很好。在遵循示例之后,即使在Gitlab CI管道成功之后,我仍然无法为GitLab页面生成一个网站链接。有人能帮忙吗?
这就是..gitlab ci.yml的样子:
# .gitlab-ci.yml file to be placed in the root of your repository
pages: # the job must be named pages
image: node:latest
stage: deploy
script:
- npm ci
- npm run bu
我和Gitlab有问题。我使用下面的指南来安装和配置Gitlab https://github.com/gitlabhq/gitlab-recipes/blob/master/install/centos/README.md。安装似乎进行得很顺利。这个网络应用程序似乎运行良好。但是我不能克隆,拉,推,基本上我不能使用Gitlab。在尝试在SSH上克隆时,我看到了带有HTTP和拒绝权限的403个错误。
我已经确保我的私钥在Windows和OS上都是正确设置的。我可以看到服务器上的公钥。我在~/.ssh.config中将以下内容添加到配置文件中
Host {hostname}
User g
我想在单独的服务器上安装GitLab运行程序,但当我尝试连接到GitLab时,我收到以下消息:
Running in system-mode.
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
<URL>
Please enter the gitlab-ci token for this runner:
<TOKEN>
Please enter the gitlab-ci description for th