Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabc committed May 31, 2018
1 parent 8ee82ec commit 20e11b7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 6 deletions.
11 changes: 5 additions & 6 deletions git/gitlab_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ yum install -y postfix
systemctl enable postfix
systemctl start postfix

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


cat >>/etc/yum.repos.d/gitlab-ce.repo<<EOF
[gitlab-runner]
name=gitlab-runner
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/yum/el7
[gitlab-ci-multi-runner]
name=gitlab-ci-multi-runner
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ci-multi-runner/yum/el7
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
EOF

yum makecache
yum install -y gitlab-runner

yum install gitlab-ci-multi-runner
echo ok
41 changes: 41 additions & 0 deletions git/gitlab_install_1.0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash
## gitlab_yum 2018-05-20
## http://www.aqzt.com
##email: [email protected]
##robert yu
##centos 6和centos 7

yum install -y curl policycoreutils-python openssh-server
systemctl enable sshd
systemctl start sshd

yum install -y postfix
systemctl enable postfix
systemctl start postfix

cat >/etc/yum.repos.d/gitlab-ce.repo<<EOF
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
gpgcheck=0
enabled=1
EOF

yum makecache
yum install -y gitlab-ce


cat >>/etc/yum.repos.d/gitlab-ce.repo<<EOF
[gitlab-runner]
name=gitlab-runner
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/yum/el7
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
EOF

yum makecache
yum install -y gitlab-runner

echo ok

0 comments on commit 20e11b7

Please sign in to comment.