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
相关推荐
大气层煮月亮18 小时前
ERP-Agent 记忆系统优化方案
java·大数据·elasticsearch
coderlin_18 小时前
Langgraph项目 一(mysql,es,qdrant,embedding模块)
mysql·elasticsearch·embedding
倒流时光三十年19 小时前
Elasticsearch SearchRequest 构建备忘录
大数据·elasticsearch
信创DevOps先锋19 小时前
2025年中国CI/CD市场格局:安全与智能并重的技术突围战
安全·ci/cd·gitee·开源
Elastic 中国社区官方博客21 小时前
多大才算太大?Elasticsearch 容量规划最佳实践
大数据·运维·数据库·elasticsearch·搜索引擎·全文检索
MegaDataFlowers21 小时前
基于Gitee Go官方参考设计的远端持续集成验证
ci/cd·gitee
LDG_AGI21 小时前
【搜索引擎】Elasticsearch(四):bool查询(与where类似),多条件搜索利器
大数据·人工智能·深度学习·elasticsearch·机器学习·搜索引擎
刘~浪地球1 天前
云原生与容器--CI/CD 流水线设计实践
ci/cd·云原生
晨旭缘1 天前
GitLab CICD 中 K8s 部署:BOM 头与 YAML 格式全解
容器·kubernetes·gitlab
Elasticsearch2 天前
使用 Jina 远程 MCP 服务器的 Agentic 工作流
elasticsearch