Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/openvsx-proxy/BUILD.yaml
2492 views
1
# Copyright (c) 2021 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: app
7
type: go
8
deps:
9
- components/common-go:lib
10
srcs:
11
- "**/*.go"
12
- "go.mod"
13
- "go.sum"
14
env:
15
- CGO_ENABLED=0
16
- GOOS=linux
17
config:
18
packaging: app
19
buildCommand: ["go", "build", "-trimpath", "-ldflags", "-buildid= -w -s -X 'github.com/gitpod-io/gitpod/openvsx-proxy/cmd.Version=commit-${__git_commit}'"]
20
- name: lib
21
type: go
22
deps:
23
- components/common-go:lib
24
srcs:
25
- "**/*.go"
26
- "go.mod"
27
- "go.sum"
28
env:
29
- CGO_ENABLED=0
30
- GOOS=linux
31
config:
32
packaging: library
33
dontTest: false
34
- name: docker
35
type: docker
36
deps:
37
- :app
38
argdeps:
39
- imageRepoBase
40
config:
41
buildArgs:
42
VERSION: ${version}
43
dockerfile: leeway.Dockerfile
44
metadata:
45
helm-component: openVsxProxy
46
image:
47
- ${imageRepoBase}/openvsx-proxy:${version}
48
- ${imageRepoBase}/openvsx-proxy:commit-${__git_commit}
49
50