-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtasks.yaml
More file actions
73 lines (73 loc) · 1.17 KB
/
tasks.yaml
File metadata and controls
73 lines (73 loc) · 1.17 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
62
63
64
65
66
67
68
69
70
71
72
73
port: 3001
tasks:
build-app:
command:
- go
- build
- -v
- .
watch:
- main.go
workingDir: demo/go
group: app
error:
sh: |
set -ex
nopes
logs:
sh: |
set -eux
for i in {1..1000}; do
echo "hello $i"
sleep 2
done
stalledTimeout: 5s
run-app:
command:
- ./demo/go/go
dependencies:
- build-app
env:
PORT: "9090"
ports:
- "9090"
group: app
run-container:
image: httpd
log: baz.log
ports:
- 80:10080
readinessProbe: http://localhost:10080?failureThreshold=20&initialDelay=3s&period=5s&successThreshold=1
run-k8s:
manifests:
- testdata
ports:
- 18080:80
script:
sh: |
set -eu
echo "\033[31;1;4mHello Colors\033[0m"
sleep 5
service:
sh: |
set -eux
echo "hello world"
sleep 1000
type: Service
skipped:
targets:
- go.mod
up:
dependencies:
- run-app
- script
- run-container
- run-k8s
- service
- logs
- skipped
terminationGracePeriodSeconds: 3
volumes:
- hostPath:
path: .
name: work