-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdobi.yaml
More file actions
61 lines (45 loc) · 1.13 KB
/
dobi.yaml
File metadata and controls
61 lines (45 loc) · 1.13 KB
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
meta:
project: docker-api-reference
default: validate
mount=source:
bind: .
path: /code
image=spec-validator:
image: swagger-spec-validator
context: dockerfiles/
dockerfile: Dockerfile.swagger-tools
image=linter:
image: yaml-linter
context: dockerfiles/
dockerfile: Dockerfile.yamllint
image=go-swagger:
image: quay.io/goswagger/swagger
tags: [0.6.0]
pull: once
job=swagger-validate:
use: spec-validator
mounts: [source]
command: "swagger.yaml"
job=yaml-lint:
use: linter
mounts: [source]
command: "swagger.yaml"
job=go-swagger-validate:
use: go-swagger
mounts: [source]
command: "validate /code/swagger.yaml"
job=swagger.json:
use: linter
mounts: [source]
entrypoint: "sh -c '
python -c \"import sys, yaml, json;
json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)\"
< swagger.yaml > swagger.json'"
artifact: "swagger.json"
compose=serve-index:
files: [docker-compose.yml]
project: '{project}'
alias=validate:
tasks: [yaml-lint, swagger-validate]
alias=preview:
tasks: ['serve-index:attach']