当前位置: 首页 > news >正文

CICD 持续集成与持续交付——gitlab

部署

虚拟机最小需求:4G内存 4核cpu

下载:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/

安装依赖性

[root@cicd1 ~]# yum install -y curl policycoreutils-python openssh-server perl[root@cicd1 ~]# yum install -y gitlab-ce-15.9.3-ce.0.el7.x86_64.rpm
[root@cicd1 ~]# cd /etc/gitlab/[root@cicd1 gitlab]# vim gitlab.rb

自动化部署

[root@cicd1 gitlab]# gitlab-ctl reconfigure

[root@cicd1 ~]# gitlab-ctl status

登录 

用户:root

初始密码: cat /etc/gitlab/initial_root_password

语言设置

修改密码,初始密码24小时后过期

新建项目

添加密钥

克隆项目

[root@cicd1 ~]# git clone git@192.168.92.21:root/demo.git[root@cicd1 ~]# cd demo/[root@cicd1 demo]# ls[root@cicd1 demo]# git remote -v

[root@cicd1 demo]# echo www.westos.org > index.html[root@cicd1 demo]# ls[root@cicd1 demo]# git add  index.html[root@cicd1 demo]# git commit -m "add index.html"[root@cicd1 demo]# git push -u origin main

http://www.lryc.cn/news/235805.html

相关文章:

  • Linux - 驱动开发 - RNG框架
  • qsort使用举例和qsort函数的模拟实现
  • AttributeError: module ‘gradio‘ has no attribute ‘ClearButton‘解决方案
  • Kafka 集群如何实现数据同步?
  • 一本了解生成式人工智能
  • git 相关指令总结(持续更新中......)
  • windows 安装 Oracle Database 19c
  • 【数据结构】图的存储结构(邻接矩阵)
  • kubernetes--Pod控制器详解
  • 九、Linux用户管理
  • springboot项目中没有识别到yml文件解决办法
  • [管理与领导-125]:一个IT人的思考:职场中、人际交往中,不要为他人的不良行为和言语买单,不要让自己的情绪被外界影响或掌控。
  • 【FPGA】IP核
  • 吾爱破解置顶的“太极”,太好用了吧!
  • Postman接收列表、数组参数@RequestParam List<String> ids
  • qemu + busybox + 内核实验环境搭建(2023-11)
  • JavaScript管理HTMLDOM元素(增删改查)
  • RE2文本匹配实战
  • 实在智能携手中国电信翼支付,全球首款Agent智能体亮相2023数字科技生态大会
  • 安全框架springSecurity+Jwt+Vue-1(vue环境搭建、动态路由、动态标签页)
  • React整理总结(三)
  • 天气这么好,都外出了。顺便了解一下漏桶算法
  • 【FPGA】Verilog:实现 RS 触发器 | Flip-Flop | 使用 NOR 的 RS 触发器 | 使用 NAND 的 RS 触发器
  • 【技术追踪】SAM(Segment Anything Model)代码解析与结构绘制之Mask Decoder
  • 认识Tomcat
  • c语言通信之串口通信
  • ​软考-高级-系统架构设计师教程(清华第2版)【第16章 嵌入式系统架构设计理论与实践(P555~613)-思维导图】​
  • 2024年山东省职业院校技能大赛中职组 “网络安全”赛项竞赛试题-B卷
  • 【Python数据结构与算法】——(线性结构)精选好题分享,不挂科必看系列
  • 大数据-之LibrA数据库系统告警处理(ALM-12054 证书文件失效)