-
Notifications
You must be signed in to change notification settings - Fork 2
/
grml.yaml
78 lines (69 loc) · 1.6 KB
/
grml.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
78
version: 1
project: sample
env:
VERSION: 1.0.0
DESTBIN: sample-${VERSION}
BUILDDIR: ${ROOT}/build
BINDIR: ${ROOT}/bin
options:
debug: false
runopts:
- world
- mars
interpreter: sh
import:
- grml.sh
commands:
clean:
help: clean the build files
exec: |
rm -rf "${BUILDDIR}"
go:
help: go helpers
commands:
get:
help: get all go dependencies
exec: |
go get -d ./...
update:
help: update all go dependencies
exec: |
go get -u -d ./...
tidy:
help: cleanup the go.mod file
exec: |
go mod tidy -v
build:
help: build the app
deps:
- resources
exec: |
go_build
commands:
run:
help: run the app after build
deps:
- build
- run
run:
help: run the app
exec: |
"${BINDIR}/${DESTBIN}" "${runopts}"
resources:
help: prepare the resources
deps:
- resources.images
exec: |
touch ${BUILDDIR}/resources
commands:
images:
help: prepare image resources
exec: |
touch ${BUILDDIR}/images
deploy:
help: deploy the app
args:
- host
- user
exec: |
echo "deploying to '${host}' with user '${user}'"