-
Notifications
You must be signed in to change notification settings - Fork 134
/
pipeline.yml
107 lines (94 loc) 路 2.81 KB
/
pipeline.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
steps:
- label: ":shell: Shellcheck"
plugins:
shellcheck#v1.1.2:
files:
- hooks/**
- lib/**
- commands/**
- label: ":sparkles: Lint"
plugins:
plugin-linter#v2.0.0:
id: docker-compose
- label: ":bash: Tests"
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
run: tests
- wait
- label: run, with links that fail
command: echo hello from alpine
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
run: alpinewithfailinglink
config: tests/composefiles/docker-compose.v2.1.yml
- wait
- label: run, with environment
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
run: alpinewithenv
config: tests/composefiles/docker-compose.v2.1.yml
environment:
- ALPACAS=sometimes
- wait
- label: build
command: /hello
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
build: helloworld
image-repository: buildkiteci/docker-compose-buildkite-plugin
config: tests/composefiles/docker-compose.v2.1.yml
- wait
- label: run after build with v2.0
command: /hello
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
run: helloworld
config: tests/composefiles/docker-compose.v2.0.yml
- wait
- label: run after build with v2.1
command: /hello
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
run: helloworld
config: tests/composefiles/docker-compose.v2.1.yml
- wait
- label: run with default command
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
run: helloworld
config: tests/composefiles/docker-compose.v2.1.yml
- wait
- label: build, where serice has build and image-name
command: /hello
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
build: helloworldimage
config: tests/composefiles/docker-compose.v2.1.yml
- wait
- label: run after build
command: /hello
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
run: helloworldimage
config: tests/composefiles/docker-compose.v2.1.yml
- wait
- label: build with custom image-name
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
build: helloworld
image-repository: buildkiteci/docker-compose-buildkite-plugin
image-name: llamas-build-${BUILDKITE_BUILD_NUMBER}
config: tests/composefiles/docker-compose.v2.1.yml
- wait
- label: run after build with custom image-name
command: /hello
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
run: helloworld
config: tests/composefiles/docker-compose.v2.1.yml
- wait
- label: push after build with custom image-name
plugins:
${BUILDKITE_REPO}#${BUILDKITE_COMMIT}:
push: helloworld
config: tests/composefiles/docker-compose.v2.1.yml