-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathBUILD.yaml
54 lines (52 loc) · 1.31 KB
/
BUILD.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
packages:
- name: app
type: go
srcs:
- "**/*.go"
- "go.mod"
- "go.sum"
- "**/fixtures/*.yaml"
deps:
- components/gitpod-db/go:lib
- components/common-go:lib
- components/usage-api/go:lib
- components/public-api/go:lib
- components/content-service-api/go:lib
- components/gitpod-db/go:init-testdb
env:
- CGO_ENABLED=0
- GOOS=linux
config:
packaging: app
buildCommand: ["go", "build", "-trimpath", "-ldflags", "-buildid= -w -s -X 'github.com/gitpod-io/gitpod/usage/cmd.Version=commit-${__git_commit}'"]
- name: lib
type: go
deps:
- components/gitpod-db/go:lib
- components/common-go:lib
- components/usage-api/go:lib
- components/public-api/go:lib
- components/content-service-api/go:lib
- components/gitpod-db/go:init-testdb
srcs:
- "**/*.go"
- "go.mod"
- "go.sum"
config:
packaging: library
dontTest: true
- name: docker
type: docker
deps:
- :app
argdeps:
- imageRepoBase
config:
buildArgs:
VERSION: ${version}
dockerfile: leeway.Dockerfile
metadata:
helm-component: usage
image:
- ${imageRepoBase}/usage:${version}
- ${imageRepoBase}/usage:commit-${__git_commit}