-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpipeline.sh
executable file
·59 lines (49 loc) · 1.33 KB
/
pipeline.sh
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
#!/bin/bash
set -eu
# We have to use cat because pipeline.yml $ interpolation doesn't work in YAML
# keys, only values
cat <<YAML
steps:
- label: ":shell: Linting"
plugins:
operable/shellcheck:
script:
- hooks/command
- hooks/commands/build.sh
- hooks/commands/test.sh
- hooks/common.sh
- hooks/post-command
- scripts/run
opts: -x
- wait
- label: Build a Cog Bundle Image
plugins:
operable/cog-bundle#${BUILDKITE_COMMIT}:
build: test/config.yaml
dockerfile: test/Dockerfile
- label: Build a Cog Bundle Image with custom tag
plugins:
operable/cog-bundle#${BUILDKITE_COMMIT}:
build: test/config.yaml
dockerfile: test/Dockerfile
tag: cogcmd/format-testing:even-more-testing-${BUILDKITE_BUILD_NUMBER}
- label: Build image, but don't push
plugins:
operable/cog-bundle#${BUILDKITE_COMMIT}:
build: test/config.yaml
dockerfile: test/Dockerfile
tag: foo/bar:1.0.0
push: "false" # TODO: Shouldn't need to be quoted
- wait
YAML
for cog in master
do
cat <<STEP
- label: ":cogops: cog@${cog}"
plugins:
operable/cog-bundle#${BUILDKITE_COMMIT}:
test: test/integration.yaml
cog-version: ${cog}
config: test/config.yaml
STEP
done