/
gitlab-ci-example.yml
63 lines (57 loc) · 1.34 KB
/
gitlab-ci-example.yml
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
---
stages:
- test
################################# Linux VM runner test #################################
test_linux_runner:
stage: test
script:
- 'hostname'
- 'whoami'
tags:
- ubuntu2004
################################# macOS VM runner test #################################
test_macos_runner:
stage: test
script:
- 'hostname'
- 'whoami'
tags:
- macos11
################################# Windows VM runenr test #################################
test_win_runner:
stage: test
script:
- 'hostname'
- 'whoami'
tags:
- win10_1909
################################# Docker runner test #################################
test_docker_runner:
stage: test
script:
- 'hostname'
- 'whoami'
tags:
- linux
- docker
################################ Windows Docker runner test #################################
test_win_docker_runner:
stage: test
image: mcr.microsoft.com/windows/servercore:1809
script:
- 'hostname'
- 'whoami'
tags:
- windows
- docker
################################ Custom Docker image runner test #################################
test_custom_docker_image_runner:
stage: test
image: registry.hackinglab.local:5000/custom-ubuntu
script:
- 'hostname'
- 'whoami'
- 'curl -s https://www.google.com > /dev/null'
tags:
- linux
- docker