Commit 20e11b7 1 parent 8ee82ec commit 20e11b7 Copy full SHA for 20e11b7
File tree 2 files changed +46
-6
lines changed
2 files changed +46
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ yum install -y postfix
13
13
systemctl enable postfix
14
14
systemctl start postfix
15
15
16
- cat >> /etc/yum.repos.d/gitlab-ce.repo<< EOF
16
+ cat > /etc/yum.repos.d/gitlab-ce.repo<< EOF
17
17
[gitlab-ce]
18
18
name=Gitlab CE Repository
19
19
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
@@ -26,16 +26,15 @@ yum install -y gitlab-ce
26
26
27
27
28
28
cat >> /etc/yum.repos.d/gitlab-ce.repo<< EOF
29
- [gitlab-runner]
30
- name=gitlab-runner
31
- baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/yum/el7
29
+ [gitlab-ci-multi- runner]
30
+ name=gitlab-ci-multi- runner
31
+ baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ci-multi- runner/yum/el7
32
32
repo_gpgcheck=0
33
33
gpgcheck=0
34
34
enabled=1
35
35
gpgkey=https://packages.gitlab.com/gpg.key
36
36
EOF
37
37
38
38
yum makecache
39
- yum install -y gitlab-runner
40
-
39
+ yum install gitlab-ci-multi-runner
41
40
echo ok
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # # gitlab_yum 2018-05-20
3
+ # # http://www.aqzt.com
4
+
5
+ # #robert yu
6
+ # #centos 6和centos 7
7
+
8
+ yum install -y curl policycoreutils-python openssh-server
9
+ systemctl enable sshd
10
+ systemctl start sshd
11
+
12
+ yum install -y postfix
13
+ systemctl enable postfix
14
+ systemctl start postfix
15
+
16
+ cat > /etc/yum.repos.d/gitlab-ce.repo<< EOF
17
+ [gitlab-ce]
18
+ name=Gitlab CE Repository
19
+ baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
20
+ gpgcheck=0
21
+ enabled=1
22
+ EOF
23
+
24
+ yum makecache
25
+ yum install -y gitlab-ce
26
+
27
+
28
+ cat >> /etc/yum.repos.d/gitlab-ce.repo<< EOF
29
+ [gitlab-runner]
30
+ name=gitlab-runner
31
+ baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/yum/el7
32
+ repo_gpgcheck=0
33
+ gpgcheck=0
34
+ enabled=1
35
+ gpgkey=https://packages.gitlab.com/gpg.key
36
+ EOF
37
+
38
+ yum makecache
39
+ yum install -y gitlab-runner
40
+
41
+ echo ok
You can’t perform that action at this time.
0 commit comments