Skip to content

Commit 19356c9

Browse files
committed
update docker/gitlab.md
1 parent 323d219 commit 19356c9

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

docker/gitlab.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,43 @@ docker run -d --name gitlab-runner --restart always \
265265

266266
服务 gitlab-runner 跑起来之后可以注册对应的仓库
267267

268-
```
268+
```shell
269269
docker run --rm -it -v /home/docker/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner register
270+
271+
# Runtime platform arch=amd64 os=linux pid=8 revision=943fc252 version=13.7.0
272+
# Running in system-mode.
273+
274+
# Enter the GitLab instance URL (for example, https://gitlab.com/):
275+
# https://g.xxxxx.cn/
276+
# Enter the registration token:
277+
# ze9H4**********
278+
# Enter a description for the runner:
279+
# [7d0472a5e808]: web
280+
# Enter tags for the runner (comma-separated):
281+
282+
# Registering runner... succeeded runner=ze9H44QH
283+
# Enter an executor: docker-ssh+machine, docker-ssh, parallels, virtualbox, docker+machine, kubernetes, custom, docker, shell, ssh:
284+
# shell
285+
# Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
286+
```
287+
288+
- [gitlab-ci templates](https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Nodejs.gitlab-ci.yml)
289+
290+
```toml
291+
concurrent = 1
292+
check_interval = 0
293+
294+
[session_server]
295+
session_timeout = 1800
296+
297+
[[runners]]
298+
name = "web"
299+
url = "https://g.xxxxx.cn/"
300+
token = "4xXx_t9aqcWkK5DZHo-W"
301+
executor = "docker"
302+
[runners.custom_build_dir]
303+
[runners.cache]
304+
[runners.cache.s3]
305+
[runners.cache.gcs]
306+
[runners.cache.azure]
270307
```

0 commit comments

Comments
 (0)