Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/content-service/BUILD.yaml
2492 views
1
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
2
# Licensed under the GNU Affero General Public License (AGPL).
3
# See License.AGPL.txt in the project root for license information.
4
5
packages:
6
- name: lib
7
type: go
8
deps:
9
- components/common-go:lib
10
- components/content-service-api/go:lib
11
srcs:
12
- "**"
13
config:
14
packaging: library
15
dontTest: false
16
- name: app
17
type: go
18
deps:
19
- components/common-go:lib
20
- components/content-service-api/go:lib
21
srcs:
22
- "**/*.go"
23
- "go.mod"
24
- "go.sum"
25
- "**/*.json"
26
env:
27
- CGO_ENABLED=0
28
- GOOS=linux
29
config:
30
packaging: app
31
buildCommand: ["go", "build", "-trimpath", "-ldflags", "-buildid= -w -s -X 'github.com/gitpod-io/gitpod/content-service/cmd.Version=commit-${__git_commit}'"]
32
- name: docker
33
type: docker
34
deps:
35
- :app
36
argdeps:
37
- imageRepoBase
38
config:
39
buildArgs:
40
VERSION: ${version}
41
dockerfile: leeway.Dockerfile
42
metadata:
43
helm-component: contentService
44
image:
45
- ${imageRepoBase}/content-service:${version}
46
- ${imageRepoBase}/content-service:commit-${__git_commit}
47
48