mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Make compile-build-cmd depend on init-enterprise (#53029)
This commit is contained in:
committed by
GitHub
parent
96564be396
commit
cea4b3fb19
@@ -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,
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user