博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
服务端自动集成-山寨版
阅读量:7210 次
发布时间:2019-06-29

本文共 939 字,大约阅读时间需要 3 分钟。

hot3.png

640?wx_fmt=png

1

安装 GitLab

sudo yum install -y curl policycoreutils-python openssh-server openssh-clients

sudo systemctl enable sshd

sudo systemctl start sshd

sudo firewall-cmd --permanent --add-service=http

sudo systemctl reload firewalld

 

sudo yum install postfix

sudo systemctl enable postfix

sudo systemctl start postfix

 

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

 

 

640?wx_fmt=png

 

 

2

安装 GitLab Runner

  1. Add GitLab's official repository:

  2. Install the latest version of GitLab Runner

  3. Register the Runner

        参考 https://docs.gitlab.com/runner/register/index.html

curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash

 

sudo yum install gitlab-runner

 

 

3

添加gitlab-ci.yml

stages:

- deploy

deploy:

  stage: deploy

  script:

    - /deploy yun yun

  only:

    - dev

 

 

 

4

编写脚本

640?wx_fmt=png

 

    

5

部署记录

640?wx_fmt=png

 

 

 

6

参考链接

  1. https://about.gitlab.com/installation/#centos-7?version=ce

 

640?wx_fmt=jpeg

转载于:https://my.oschina.net/william5/blog/1931408

你可能感兴趣的文章
基于django搭建网站
查看>>
c++ 循环程序的作业,2017年10月10日作业题。
查看>>
从C语言结构对齐重谈变量存放地址与内存分配
查看>>
NSTimer_Block封装定时器的target-action成Block回调
查看>>
FileInfo类和DirectoryInfo类
查看>>
B. Obtaining the String(模拟)
查看>>
[原]浅谈vue过渡动画,简单易懂
查看>>
10.Vue请求远端数据库
查看>>
js -- sort() 使用排序函数
查看>>
时间你懂的,
查看>>
今天 周日,
查看>>
mysql-5.7.21-winx64安装过程(整了好久原因是没关闭防火墙)
查看>>
vi编辑器
查看>>
【HDOJ】1709 The Balance
查看>>
ubuntu 服务restart失败
查看>>
团队作业6——展示博客(Alpha版本)
查看>>
codeforces725F Family Photos(贪心)
查看>>
nginx安装编译详解
查看>>
js 格式化日期 ("/Date(1400046388387)/")
查看>>
详解原生JS回到顶部
查看>>