Make compile-build-cmd depend on init-enterprise (#53029)

This commit is contained in:
Dimitris Sotirakis
2022-08-01 12:56:06 +02:00
committed by GitHub
parent 96564be396
commit cea4b3fb19
3 changed files with 33 additions and 6 deletions

View File

@@ -1213,14 +1213,18 @@ def end_to_end_tests_deps(edition):
'end-to-end-tests-various-suite' + enterprise2_suffix(edition),
]
def compile_build_cmd():
return {
def compile_build_cmd(edition='oss'):
dependencies = []
if edition == 'enterprise':
dependencies = ['init-enterprise',]
return {
'name': 'compile-build-cmd',
'image': 'golang:1.17',
'commands': [
"go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd",
],
'depends_on': dependencies,
'environment': {
'CGO_ENABLED': 0,
},
}
},
}