-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.gocd.yaml
77 lines (77 loc) · 2.22 KB
/
pipeline.gocd.yaml
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
67
68
69
70
71
72
73
74
75
76
77
format_version: 3
pipelines:
docker-ansible-dojo:
group: platform
label_template: "${git[:8]}"
materials:
git:
type: configrepo
secure_variables:
VAULT_TOKEN: "AES:B3WoVH3xEL6tB5FTMuvq2g==:0SNVGtzssvA4knsLiMGXuEIsvWA5X0ySN/6U5md/xtE="
stages:
- build:
clean_workspace: true
jobs:
docker_image:
resources:
- docker_builder
artifacts:
- build:
source: image/imagerc
destination:
tasks:
- exec:
command: /bin/bash
arguments:
- -c
- ./tasks build
- itest:
clean_workspace: true
jobs:
end_user:
resources:
- docker_builder
tasks:
- fetch:
stage: build
job: docker_image
is_file: yes
source: imagerc
destination: image/
- exec:
command: /bin/bash
arguments:
- -c
- ./tasks itest
- release:
clean_workspace: true
jobs:
code:
# this could run on elastic go agent, but since all the jobs
# are run here on docker_builder, let's run this job there too
resources:
- docker_builder
tasks:
- exec:
command: /bin/bash
arguments:
- -c
- ./tasks release
- publish:
clean_workspace: true
jobs:
image:
resources:
- docker_builder
tasks:
- fetch:
stage: build
job: docker_image
is_file: yes
source: imagerc
destination: image/
- exec:
command: /bin/bash
arguments:
- -c
- ./tasks publish