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
相关推荐
Good_Starry5 小时前
Git介绍--github/gitee/gitlab使用
git·gitee·gitlab·github
丶213612 小时前
【大数据】Elasticsearch 实战应用总结
大数据·elasticsearch·搜索引擎
闲人编程12 小时前
elasticsearch实战应用
大数据·python·elasticsearch·实战应用
陌殇殇殇13 小时前
使用GitLab CI构建持续集成案例
运维·ci/cd·云原生·容器·kubernetes·gitlab
吕玉生13 小时前
基于GitLab 的持续集成环境
ci/cd·gitlab
世俗ˊ17 小时前
Elasticsearch学习笔记(3)
笔记·学习·elasticsearch
weixin_4662866817 小时前
ElasticSearch入门
大数据·elasticsearch·搜索引擎
Elasticsearch19 小时前
使用模拟和真实的 Elasticsearch 来测试你的 Java 代码
elasticsearch
沐曦可期20 小时前
Elasticsearch学习记录
大数据·学习·elasticsearch
alfiy1 天前
ElasticSearch学习笔记(三)Ubuntu 2204 server elasticsearch集群配置
笔记·学习·elasticsearch