Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
joohanhong
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JooHan Hong
joohanhong
Commits
cfdff929
Commit
cfdff929
authored
4 years ago
by
JooHan Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitlab-runner, init1
parent
8b019929
master
No related merge requests found
Pipeline
#5143
passed with stages
in 2 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
12 deletions
+32
-12
README.md
DEVELOPMENT/CI_CD/GITLAB/README.md
+32
-12
gitlab-runner.png
DEVELOPMENT/CI_CD/GITLAB/images/gitlab-runner.png
+0
-0
gitlab-runner_lab.png
DEVELOPMENT/CI_CD/GITLAB/images/gitlab-runner_lab.png
+0
-0
No files found.
DEVELOPMENT/CI_CD/GITLAB/README.md
View file @
cfdff929
...
...
@@ -22,42 +22,53 @@ Runner는 yaml을 파일을 수행한다. 특정 프로젝트에 국한되거나
```
plaintext
!참고 : Shared 와 Specific Runner의 차이
Specific Runner는 특정 Project에서만 사용할 수 있다.
Specific Runner는 특정 Project에서만 사용할 수 있다.
이는 여러 프로젝트에서 사용가능한 Shared Runner와의 가장 큰 차이점이다.
즉, 여러 프로젝트에서 유사한 Job을 수행할 경우에는 Shared Runner가 권장되며,
특별한 Job이 있는 경우에는 Specific Runner가 권장된다.
이는 여러 프로젝트에서 사용가능한 Shared Runner와의 가장 큰 차이점이다.
즉, 여러 프로젝트에서 유사한 Job을 수행할 경우에는 Shared Runner가 권장되며,
특별한 Job이 있는 경우에는 Specific Runner가 권장된다.
예를 들어, 만약 특정 프로젝트를 Deploy할 때 이를 위한 프로젝트 별로 권한을 지정해야 한다면,
예를 들어, 만약 특정 프로젝트를 Deploy할 때 이를 위한 프로젝트 별로 권한을 지정해야 한다면,
Specific Runner를 통해 Job을 수행하는 것이다.
```
## GitLAB Runner Install
-
redhat 계열
-
**redhat 계열**
```
bash
# curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | bash
...중략
# yum install gitlab-runner
# gitlab-runner register
Runtime platform
arch
=
amd64
os
=
linux
pid
=
3037
revision
=
ac8e767a
version
=
12.6.0
Running
in
system-mode.
```
-
Debian 계열
-
**Debian 계열**
```
bash
# curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | bash
...중략
# apt install gitlab-runner
## GitLAB Runner Register
```
## GitLAB Runner Register (Nodes)
GitLab Runner 패키지를 설치했으면, 다음과 같이 등록(register)을 수행해야 한다.
```
bash
# gitlab-runner register
Runtime platform
arch
=
amd64
os
=
linux
pid
=
3037
revision
=
ac8e767a
version
=
12.6.0
Running
in
system-mode.
Please enter the gitlab-ci coordinator URL
(
e.g. https://gitlab.com/
)
:
https://gitlab.hongsnet.net
Please enter the gitlab-ci token
for
this runner:
M4y6veuzG2VG_nH7ZSdh
XXXXXXXXX
Please enter the gitlab-ci description
for
this runner:
[
TB2.hongsnet.net]:
Please enter the gitlab-ci tags
for
this runner
(
comma separated
)
:
...
...
@@ -68,8 +79,17 @@ shell
Runner registered successfully. Feel free to start it, but
if
it
's running already the config should be automatically reloaded!
```
Token의 정보는 GitLAB에서 확인할 수 있다.
> 프로젝트 -> Settings -> CI/CD -> Runners 이동

## GitLAB Runner Register
위와 같이 Runner가 등록되었으면, 다음과 같은 현황을 확인할 수 있다.

This diff is collapsed.
Click to expand it.
DEVELOPMENT/CI_CD/GITLAB/images/gitlab-runner.png
View replaced file @
8b019929
View file @
cfdff929
11.2 KB
|
W:
0px
|
H:
0px
17.7 KB
|
W:
0px
|
H:
0px
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
DEVELOPMENT/CI_CD/GITLAB/images/gitlab-runner_lab.png
0 → 100644
View file @
cfdff929
11.7 KB
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment