-
Notifications
You must be signed in to change notification settings - Fork 0
/
20230313-Runner
66 lines (60 loc) · 2.13 KB
/
20230313-Runner
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
docker run -d --name gitlab-runner01 --restart always -v /var/run/docker.sock:/var/run/docker.sock -v gitlab-runner01:/etc/gitlab-runner gitlab/gitlab-runner:latest
docker run --rm -it -v gitlab-runner01:/etc/gitlab-runner gitlab/gitlab-runner:latest register
.gitlab-ci.yml
image: busybox:latest
before_script:
- echo "Before script section"
- echo "For example you might run an update here or install a build dependency"
- echo "Or perhaps you might print out some debugging details"
after_script:
- echo "After script section"
- echo "For example you might do some cleanup here"
build1:
stage: build
script:
- echo "Do your build here"
test1:
stage: test
script:
- echo "Do a test here"
- echo "For example run a test suite"
test2:
stage: test
script:
- echo "Do another parallel test here"
- echo "For example run a lint test"
deploy1:
stage: deploy
script:
- echo "Do your deploy here"
environment: production
cp Root-CA.crt /var/lib/docker/volumes/gitlab-runner01/_data/certs
docker restart gitlab-runner01
[root@dc-dmz-cicd-runner ~]# cat /var/lib/docker/volumes/publicgitlab-runner/_data/config.toml
concurrent = 2
check_interval = 2
shutdown_timeout = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "publicgitlab-runner"
url = "https://gitpub.testvn.click"
id = 4
token = "1"
token_obtained_at = 2023-03-14T02:15:10Z
token_expires_at = 0001-01-01T00:00:00Z
executor = "docker"
environment = ["DOCKER_AUTH_CONFIG={\"auths\":{\"registry.testvn.click:5000\":{\"auth\":\"Y3Vvbmd111yMDIx\"}}}", "https_proxy=http://10.252.17.65:3128", "http_proxy=http://10.252.17.65:3128", "no_proxy=.testvn.click,10.252.0.0/16"]
clone_url = "https://gitpub.testvn.click"
[runners.cache]
MaxUploadedArchiveSize = 0
[runners.docker]
tls_verify = false
image = "registry.testvn.click:5000/alpine:latest"
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock"]
allowed_pull_policies = ["never", "if-not-present", "always"]
shm_size = 0