gitlab

git安装以及gitlib配置

巧了我就是萌 提交于 2021-01-26 11:16:53
安装 Git:详见 http://www.cnblogs.com/xiuxingzhe/p/9300905.html 开通 gitlab(开通需要咨询所在公司的gitlab管理员) 账号后,本地 Git 仓库和 gitlab 仓库仍然不能传输项目,原因是要通过 SSH 加密才能传输,所以需要让 gitlab 认证本地的 SSH Key 认证之前,则先使用 Git 生成 SSH Key 1 Git 生成秘钥 1.1 确认本地秘钥 SSH 秘钥默认储存在账户的主目录下的 ~/.ssh 目录 如: C:\Users\BF100400\.ssh\ 查看是否包含 id_rsa 和 id_rsa.pub( 或者是 id_dsa 和 id_dsa.pub 之类成对的文件 ) ,有 .pub 后缀的文件就是公钥,另一个文件则是密钥。 如果有这两个文件,则跳过 1.2 ;如果没有这两个文件,甚至 .ssh 目录也没有,则需要用 ssh-keygen 来创建 1.2 生成秘钥信息 在 .ssh 目录下右键打开 Git Bash(.ssh 目录不存在,手动创建 ) 生成秘钥: ssh-keygen -t rsa -C "your_email@youremail.com" ,直接 Enter 就行,然后会提示输入密码 ( 可输可不输 )    说明 :命令中的email,就是gitlab中的账号

How to increase maximum artifacts size for Gitlab on-premises

别等时光非礼了梦想. 提交于 2021-01-24 08:13:35
问题 We've installed Gitlab on-premises, however someone else did the installation so I don't know as much about configuring the runners, etc. A pipeline failed due to the following error: Uploading artifacts... app/build/outputs/apk/debug/app-debug.apk: found 1 matching files app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk: found 1 matching files ERROR: Uploading artifacts to coordinator... too large archive id=13832 responseStatus=413 Request Entity Too Large status=413 Request

Building Go apps with private gitlab modules in Docker

人走茶凉 提交于 2021-01-24 07:11:11
问题 I am trying to build my go apps on a docker file. Inside my go.mod there is private package that needs authentication/ssh. This question is similar to Building Go apps with private modules in Docker, but in my case is i have to pull package from gitlab not from github . Here is my dockerfile: # builder image FROM golang:1.14.11-alpine AS builder # specific directory for build process WORKDIR /usr/src/build # copying the source code # to the current working directory COPY . . RUN apk add --no

Building Go apps with private gitlab modules in Docker

浪子不回头ぞ 提交于 2021-01-24 07:10:21
问题 I am trying to build my go apps on a docker file. Inside my go.mod there is private package that needs authentication/ssh. This question is similar to Building Go apps with private modules in Docker, but in my case is i have to pull package from gitlab not from github . Here is my dockerfile: # builder image FROM golang:1.14.11-alpine AS builder # specific directory for build process WORKDIR /usr/src/build # copying the source code # to the current working directory COPY . . RUN apk add --no

Cloning a private Repo from gitlab CI job using HTTPS without exposing my credentials into CLI

穿精又带淫゛_ 提交于 2021-01-22 12:07:31
问题 I have a gitlab ci job that does some work for me but it depends on another repo so I need to clone another repo inside this job. I can't use https cloning because gitlab will ask me for user name and password and the gitlab ci is non-interactive. So how to clone gitlab repo using https inside gitlab ci job. Thanks in advance. 回答1: You should clone that repo using SSH and a read-only deploy key, possibly storing the token in a masked variable. 回答2: I have found a way to authenticate my

What is gitlab runner

别等时光非礼了梦想. 提交于 2021-01-20 18:58:05
问题 I think I'm fundamentally missing something. I'm new to CI/CD and trying to set up my first pipeline ever with gitlab. The project is a pre-existing PHP project. I don't want to clean it up just yet, at the moment I've pushed the whole thing into a docker container and it's running fine talking to google cloud's mysql databases etc as it should locally and also on a remote google cloud testing VM. The dream is to be able to push to the development branch, and then merge the dev banch into the

What is gitlab runner

扶醉桌前 提交于 2021-01-20 18:54:43
问题 I think I'm fundamentally missing something. I'm new to CI/CD and trying to set up my first pipeline ever with gitlab. The project is a pre-existing PHP project. I don't want to clean it up just yet, at the moment I've pushed the whole thing into a docker container and it's running fine talking to google cloud's mysql databases etc as it should locally and also on a remote google cloud testing VM. The dream is to be able to push to the development branch, and then merge the dev banch into the

What is gitlab runner

痴心易碎 提交于 2021-01-20 18:54:07
问题 I think I'm fundamentally missing something. I'm new to CI/CD and trying to set up my first pipeline ever with gitlab. The project is a pre-existing PHP project. I don't want to clean it up just yet, at the moment I've pushed the whole thing into a docker container and it's running fine talking to google cloud's mysql databases etc as it should locally and also on a remote google cloud testing VM. The dream is to be able to push to the development branch, and then merge the dev banch into the

云原生 DevOps 的 5 步升级路径

笑着哭i 提交于 2021-01-20 18:19:45
作者 | 张裕 编辑 | 雅纯 来源| 阿里巴巴云原生公众号 什么是云原生 DevOps 点击查看视频: https://v.qq.com/x/page/u3220cutt7v.html 我们先通过上面一个简短视频和下面两张图,来了解什么是云原生 DevOps,它和 DevOps 有什么不同。 上图是一个大排档,图中的大厨在非常努力的去切、炒、制作各种美食,并将它卖出去。从原材料的采购到加工到销售到售后,都是一两个人完成。这是非常典型的 DevOps 场景,团队搞定端到端的所有的事情。这种情况,当厨师水平比较高、销售能力比较强的时候,可以做到高效率、低浪费。但存在的问题是,想要规模化会很难。因为它的流程都是非标准的,需要厨师有很强的个人能力。 我们再看上面这张南京大排档的图,虽然名字里有大排档,但它显然不是我们上面说的大排档。我们随便走进任何一家南京大排档,都可以发现,南京大排档的厨师,可以专注在为客户提供更好的菜品上,研发试验新菜品,并通过小批量的用户来尝试和推广。无论是用户量增加或减少,都能很快的去适应。店铺扩张也可以很快。这种我们可以理解为云原生 DevOps。 那究竟什么是云原生 DevOps 呢?我们认为:云原生 DevOps 是充分利用云原生基础设施,基于微服务/无服务架构体系和开源标准,语言和框架无关,具备持续交付和智能自运维能力,从而做到比传统 DevOps

gitlab Request to merge branch-A into develop (3 commits behind) should I worry?

亡梦爱人 提交于 2021-01-20 18:01:25
问题 When creating a merge request in gitlab I often get a message: Request to merge branch-A into develop ([x] commits behind) what does gitlab want to tell me? should I worry or do I need to fix something (what)? 回答1: After some time a merge request is open in a project it is normal that the version of the branch you are trying to merge into becomes outdated due to other people merging their own changes to it. Gitlab helps you by showing how much the version of the branch you updated is behind