mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 10:02:33 +08:00
Make compile-build-cmd depend on init-enterprise (#53029)
This commit is contained in:

committed by
GitHub

parent
96564be396
commit
cea4b3fb19
@ -306,7 +306,7 @@ def get_enterprise_pipelines(trigger, ver_mode):
|
||||
identify_runner_step(),
|
||||
clone_enterprise_step(ver_mode),
|
||||
init_enterprise_step(ver_mode),
|
||||
compile_build_cmd(),
|
||||
compile_build_cmd(edition),
|
||||
]
|
||||
for step in [wire_install_step(), yarn_install_step(), gen_version_step(ver_mode), verify_gen_cue_step(edition)]:
|
||||
step.update(deps_on_clone_enterprise_step)
|
||||
|
@ -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