gitlab

GitLab default autodevops CI: invalid tag name

*爱你&永不变心* 提交于 2020-03-23 15:34:39
问题 I am running the latest gitlab 12.4.0-ee in a docker container on Windows. The docker-runner was also configured to be run in a docker executor mode. For testing purposes I have created a test project, with only a default mater branch in it. Committed some dummy code to repo, and the CI was run automatically. Worth noticing, that the project has no gitlab-ci.yml in it! Meaning that the default CI that was run is the Auto DevOps CI (I have actually no idea where the template or the source code

How to use GitLab function “Create Merge Request” from the bash shell? [duplicate]

只谈情不闲聊 提交于 2020-03-23 08:23:13
问题 This question already has answers here : How to create a GitLab merge request via command line (8 answers) Closed 2 years ago . I need to create a merge request from a forked GitLab repository into the original repository, while running a bash script. 回答1: Use the API An example merge request would look like this: curl --header "PRIVATE-TOKEN: " -X POST https://gitlab.example.com/api/v3/projects/project_id/merge_requests/?target_project_id=id_of_parent_project 来源: https://stackoverflow.com

gitlab安装配置及使用

亡梦爱人 提交于 2020-03-22 22:30:50
1、安装配置依赖项: [root@sunan ~]# yum install curl openssh-server openssh-clients postfix policycoreutils policycoreutils-python -y 2、启动postfix,并设置开机自启,postfix支持gitlab发信功能 [root@sunan ~]# systemctl start postfix [root@sunan ~]# systemctl enable postfix 3、下载gitlab并安装: centos 7系统的下载地址: https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7 下载: [root@sunan ~]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.8.7-ce.0.el7.x86_64.rpm 安装: [root@sunan software]# rpm -ivh gitlab-ce-12.8.7-ce.0.el7.x86_64.rpm 4、修改配置文件: [root@sunan software]# vim /etc/gitlab/gitlab.rb #修改服务器ip和端口号,例如

Gitlab Runner Image with GCP credentials

三世轮回 提交于 2020-03-22 08:23:27
问题 I am trying to teach my Gitlab Runner image to get custom builder images from my private Docker Registry (GCR running in the Google Cloud). What did not work out? I created a custom Gitlab Runner image with the ServiceAccount properly set. I started in in non-privileged mode but the wormhole pattern (via docker.sock ). On exec-ing into that container (which is based on gitlab/gitlab-runner:v11.3.0 ) I had to recognise that I cannot do any docker commands in there (neither as root nor as

gitlab安装

夙愿已清 提交于 2020-03-22 02:33:52
一,RPM 安装 1,安装包下载地址: https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/ 2,rpm安装:sudo rpm -ih gitlab-ce-10.3.2-ce.0.el7.x86_64.rpm 3,配置:gitlab-ctl reconfigure 4,启动服务:gitlab-ctl start 5,停止服务:gitlab-ctl stop 二,配置邮件服务器 修改 /etc/gitlab/gitlab.rb文件。 ### Email Settings gitlab_rails['gitlab_email_enabled'] = true gitlab_rails['gitlab_email_from'] = 'git@ xxxx.com ' gitlab_rails['gitlab_email_display_name'] = 'GitLab' gitlab_rails['gitlab_email_reply_to'] = 'noreply@ xxxx.com ' gitlab_rails['gitlab_email_subject_suffix'] = '' ### GitLab email server settings ###! Docs: https://docs.gitlab.com

git 使用手册(六)————远程仓库

时间秒杀一切 提交于 2020-03-21 15:44:47
3 月,跳不动了?>>> 1. 在gitlab 上创建仓库 2. SSH Key 因为我们第一次使用gitlab 在推送文件之前还要创建SSH Key。在用户主目录下,看看有没有.ssh目录,如果有,再看看这个目录下有没有 id_rsa 和 id_rsa.pub 这两个文件,如果已经有了,可直接跳到下一步。如果没有,打开Shell(Windows下打开Git Bash),创建SSH Key: $ ssh-keygen -t rsa -C "youremail@example.com" 把 youremail@example.com 成你自己的邮件地址,然后一路回车,使用默认值即可。 $ ssh-keygen -t rsa -C'xingshuqiang@thtf.com.cn' Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/XingSQ/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /c/Users/XingSQ/.ssh/id_rsa. Your

centos7下安装gitlab

天涯浪子 提交于 2020-03-21 14:00:36
centos7下安装gitlab 1、首先按官网提示先安装依赖,然后执行下面命令添加yum源,选择gitlab-ce社区版 curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash 2、更新本地yum缓存 sudo yum makecache 3、安装gitlab-ce sudo yum install -y gitlab-ce 以上,即可安装完成。 sudo gitlab-ctl start # 启动所有 gitlab 组件; sudo gitlab-ctl stop # 停止所有 gitlab 组件; sudo gitlab-ctl restart # 重启所有 gitlab 组件; sudo gitlab-ctl status # 查看服务状态; sudo gitlab-ctl reconfigure # 启动服务; sudo vim /etc/gitlab/gitlab.rb # 修改默认的配置文件; gitlab-rake gitlab:check SANITIZE=true --trace # 检查gitlab; sudo gitlab-ctl tail # 查看日志 1、首先按官网提示先安装依赖,然后执行下面命令添加yum源

How to check jest coverage in console?

半城伤御伤魂 提交于 2020-03-21 06:54:38
问题 I have some jest tests and I can determine the coverage with jest --coverage Also see Code coverage for Jest I automatically execute the tests on a build server (gitlab runner) and want that my tests fail if the coverage is below a certain limit . In python there is a flag --cov-fail-under that can be used with pytest, e.g. pytest --cov src --cov-fail-under=90 --cov-report=term Unfortunately, I could not find a corresponding option for jest. =>What is the recommended way to check the total

grafana使用gitLab 的OAuth2认证服务登陆

自作多情 提交于 2020-03-20 13:01:20
3 月,跳不动了?>>> grafana 使用gitLab 的OAuth2认证服务登陆 grafana 配置 [auth.gitlab] enabled = true allow_sign_up = true client_id =f8d7d37a0d5bbe13e6832d878bedddeafde511ed1465bb042d2467978e797e01 client_secret =1e72599e0a006a69060758d38e8bf3a91b6e760bb64b62c7de4403aa67f092e1 scopes = api uth_url = http://192.168.222.205/oauth/authorize token_url = http://192.168.222.205/oauth/token api_url = http://192.168.222.205/api/v4 allowed_groups = [server] protocol = http http_port = 3000 root_url = http://192.168.222.205:3000/ 重启grafana 看到gitlab登陆了 systemctl restart grafana-server 注意三个参数 auth.gitlab中的 allow_sign_up =

持续集成之Gitlab安装与应用

馋奶兔 提交于 2020-03-19 07:29:32
Gitlab 是一个利用 Ruby on Rails 开发的开源应用程序,实现一个自托管的 Git 项目仓库,可通过Web 界面进行访问公开的或者私人的项目 Gitlab 拥有与 Github 类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,他非常易于浏览提交过的版本并提供一个文件历史库。他还提供一个代码片段收集功能可以轻松实现代码复用,便于日后有需要的时候进行查找 一、环境准备 如果是测试环境,其内存建议2G及以上,可以去 清华开源镜像站 下载所需gitlab版本,其安装后,会自动安装nginx提供web界面,所以要避免80端口占用。 二、安装部署gitlab 1. 安装gitlab [root@git /]# mkdir git [root@git /]# cd git/ [root@git git]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.9.8-ce.0.el7.x86_64.rpm [root@git git]# rpm -ivh gitlab-ce-11.9.8-ce.0.el7.x86_64.rpm #当gitlab安装完毕后会有一个大狐狸头 #由于我不打算做域名解析,所以需要修改其配置文件 [root@git git]# vim /etc