forked from gitpod-io/gitpod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.yaml
37 lines (37 loc) · 1.06 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
packages:
- name: app
type: go
srcs:
- go.mod
- go.sum
- "**/*.go"
- "**/*.c"
deps:
- components/common-go:lib
- components/content-service-api/go:lib
- components/ws-daemon-api/go:lib
prep:
- ["sh", "-c", "pkg-config --atleast-version=2.5.0 libseccomp || (echo \"requires libseccomp > 2.5.0\"; exit 1)"]
config:
packaging: app
buildCommand: ["go", "build", "-ldflags", "-w -extldflags \"-static\""]
- name: libseccomp
type: generic
config:
commands:
- ["sh", "-c", "curl -L https://github.com/seccomp/libseccomp/releases/download/v2.5.1/libseccomp-2.5.1.tar.gz | tar xz"]
- ["sh", "-c", "cd libseccomp-2.5.1 && ./configure --prefix=$PWD/../lib && make && make install"]
- name: lib
type: go
srcs:
- go.mod
- go.sum
- "pkg/**/*.go"
- "pkg/**/*.c"
deps:
- components/common-go:lib
- components/ws-daemon-api/go:lib
- components/content-service-api/go:lib
config:
packaging: library
dontTest: true