gitlab

Gitlab 6.2 not syncing with authorized_keys

蹲街弑〆低调 提交于 2020-01-23 11:29:15
问题 The keys I put in my Gitlab GUI are not showing up in the authorized_keys file. Hence I cannot push or pull over ssh. Any attempt asks me for an ssh password :-( I am using gitlab 6.2 stable. Here are outputs to a few commands git@CVIAL272675:~/gitlab$ bundle exec rake gitlab:shell:setup RAILS_ENV=production This will rebuild an authorized_keys file. You will lose any data stored in authorized_keys file. Do you want to continue (yes/no)? yes sh: 1: Syntax error: Unterminated quoted string

gitlab复制project新建项目

六月ゝ 毕业季﹏ 提交于 2020-01-23 05:34:32
1. 复制原项目地址 2. New project 3. import project – 选择 Repo by URL 4. 填入信息,点击“create project” 注意账号密码需要拼接到repository url里面,如下 https://username:password@gitlab.company.com/group/project.git 5. 等待拉取完成 来源: CSDN 作者: 水中天. 链接: https://blog.csdn.net/ion_L/article/details/103781087

gitlab-runner x509: certificate signed by unknown authority

风流意气都作罢 提交于 2020-01-23 02:17:10
问题 I'm trying to register a new runner on gitlab following these steps : https://docs.gitlab.com/runner/register/index.html but when I enter the url, token and tags. A error message pops-up saying: ERROR: Registering runner... failed runner=CS-XXX status=couldn't execute POST against https://example.com/api/v4/runners: Post https://example.com/api/v4/runners: x509: certificate signed by unknown authority I'm working on a new server and already installed the gitlab-runner 回答1: you need to use tls

Centos7安装gitlab私服

醉酒当歌 提交于 2020-01-22 19:36:19
参考官方文档 https://about.gitlab.com/install/#centos-7 GitLab简介 GitLab一个开源的git仓库管理平台,方便团队协作开发、管理。在GitLab上可以实现完整的CI(持续集成)、CD(持续发布)流程。而且还提供了免费使用的Plan,以及免费的可以独立部署的社区版本( https://gitlab.com/gitlab-org/gitlab-ce )。 准备 安准依赖 #安装技术依赖 yum install -y curl policycoreutils-python openssh-server 远程连接 #启动ssh服务&设置为开机启动(一般都是开启的,如果关闭的请打开) systemctl enable sshd && systemctl start sshd 安装Postfix Postfix是一个邮件服务器,GitLab发送邮件需要用到 #安装postfix yum install -y postfix #启动postfix并设置为开机启动 systemctl enable postfix && systemctl start postfix 防火墙 #为了安全,建议开启防火墙 systemctl enable firewalld && systemctl start firewalld #开放ssh、http服务

Gitlab CI yaml官方配置文件翻译

夙愿已清 提交于 2020-01-22 14:54:56
通过 .gitlab-ci.yml配置任务 此文档用于描述.gitlab-ci.yml语法,.gitlab-ci.yml文件被用来管理项目的runner 任务。 如果想要快速的了解GitLab CI ,可查看 快速引导 。 .gitlab-ci.yml 从7.12版本开始,GitLab CI使用 YAML 文件(.gitlab-ci.yml)来管理项目配置。该文件存放于项目仓库的根目录,它定义该项目如何构建。 开始构建之前YAML文件定义了一系列带有约束说明的任务。这些任务都是以任务名开始并且至少要包含 script 部分: job1: script: "execute-script-for-job1" job2: script: "execute-script-for-job2" 上面这个例子就是一个最简单且带有两个独立任务的CI配置,每个任务分别执行不同的命令。 script 可以直接执行系统命令(例如:./configure;make;make install)或者是直接执行脚本(test.sh)。 任务是由 Runners 接管并且由服务器中runner执行。更重要的是,每一个任务的执行过程都是独立运行的。 用下面这个例子来说明YAML语法还有更多复杂的任务: image: ruby:2.1 services: - postgres before_script: -

How do I use PowerShell with Gitlab CI in Gitlab Pages?

隐身守侯 提交于 2020-01-22 14:30:51
问题 How do I use PowerShell commands/scripts with Gitlab CI in a .gitlab-ci.yml file which is used to deploy to gitlab pages? I am trying to execute the build.ps1 file from .gitlab-ci.yml , but when it reaches the build.ps1 line, it gives an error saying /bin/bash: line 5: .build.ps1: command not found I am trying to use the PowerShell script to convert a file in my repo and have the converted file deployed to gitlab pages using .gitlab-ci.yml Here is my code: .gitlab.yml pages: stage: deploy

How to troubleshoot an url error with “Port number ended with 'y'”?

放肆的年华 提交于 2020-01-22 12:44:19
问题 While trying to clone an already existing repository from gitlab into my local drive. I used the format $ git clone https://github.com/libgit2/libgit2 mylibgit The resulting folder e.g mylibgit was found somewhere outside the XAMPP web folder (i.e htdocs), I moved it there but it's not working as supposed. I moved it out to my desktop and got the error : fatal: unable to access 'https://git@gitlab.com:xxxxx/yyyyyy/':Port number ended with 'y' 回答1: For gitlab, you don't need to specify the

MySQL2 gem won't install

一笑奈何 提交于 2020-01-22 10:45:47
问题 I have been trying to install Gitlab on my Ubuntu 12.04 server for a long time, and all goes well until I run bundle install . It says it is unable to install MySQL2 but gives no reason or corrective action. home/gitlab/gitlab$ sudo -u gitlab -H bundle install --deployment --without development test postgres Fetching gem metadata from http://rubygems.org/....... Fetching gem metadata from http://rubygems.org/.. Using rake (10.0.1) Using i18n (0.6.1) Using multi_json (1.3.7) Using

ssh command -T option

社会主义新天地 提交于 2020-01-21 07:54:07
问题 I'm wondering what the -T option in the following command does, cannot see this option in the manual somehow: $ ssh -T git@gitlab.com Welcome to GitLab, Simeon ! Could somebody explain? 回答1: I explained before what TTY was: a text terminal is needed when you open an interactive session to a remote server. But: in the context of a remote Git repository hosting server (GitHub, Gitlab, BitBucket, ...), no remote server will ever allow you to open an interactive session (for security reason) Then

GitLab配置ssh key

痞子三分冷 提交于 2020-01-20 22:37:52
GitLab配置ssh key 1.打开本地git bash,使用如下命令生成ssh公钥和私钥对 ssh - keygen - t rsa - C 'xxx@xxx.com' 然后一路回车 ( - C 参数是你的邮箱地址 ) 2.然后会出现:Enter file in which to save the key (/Users/yzq/.ssh/id_rsa): 回车 3.如果你的.ssh/id_rsa已经,则会出现:/Users/yzq/.ssh/id_rsa already exists. Overwrite (y/n)? y 输入:y (重新覆盖) 输入:n (不覆盖) 4.设置你的密码(位数不要太短,尽量设置6位) 详细如下图 5.现在只需要查看本机ssh公钥,获取得到它 cd ~ / . ssh ls(查看目录是否有id_rsa . pub文件) 查看公钥:cat id_rsa . pub 或者vim id_rsa . pub 详细如下图 获取到的那一大段,就是我们需要的ssh key,复制下来,包括前面和后面的,给到下图配置,即可完成GitLab配置ssh key 转载:https://www.jianshu.com/p/94b39f278214 来源: CSDN 作者: Chic_a 链接: https://blog.csdn.net/ttmmhh/article