Skip to content

Commit 20e11b7

Browse files
committed
update
1 parent 8ee82ec commit 20e11b7

File tree

2 files changed

+46
-6
lines changed

2 files changed

+46
-6
lines changed

git/gitlab_install.sh

+5-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ yum install -y postfix
1313
systemctl enable postfix
1414
systemctl start postfix
1515

16-
cat >>/etc/yum.repos.d/gitlab-ce.repo<<EOF
16+
cat >/etc/yum.repos.d/gitlab-ce.repo<<EOF
1717
[gitlab-ce]
1818
name=Gitlab CE Repository
1919
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
@@ -26,16 +26,15 @@ yum install -y gitlab-ce
2626

2727

2828
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
3232
repo_gpgcheck=0
3333
gpgcheck=0
3434
enabled=1
3535
gpgkey=https://packages.gitlab.com/gpg.key
3636
EOF
3737

3838
yum makecache
39-
yum install -y gitlab-runner
40-
39+
yum install gitlab-ci-multi-runner
4140
echo ok

git/gitlab_install_1.0.sh

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

0 commit comments

Comments
 (0)