CI: Allow other modules to register build sub-commands (#62741)

* Allow other modules to register build sub-commands

* CI: Fix retries on artifacts-page clone

* Fix linting errors

* Fix golint issues

* Update to grabpl 3.0.21
This commit is contained in:
Horst Gutmann
2023-02-02 12:35:43 +01:00
committed by GitHub
parent 29d3e696f0
commit 312ea59e6d
5 changed files with 102 additions and 59 deletions

View File

@ -647,8 +647,14 @@ def artifacts_page_pipeline():
pipeline(
name = "publish-artifacts-page",
trigger = trigger,
steps = [download_grabpl_step(), artifacts_page_step()],
steps = [
download_grabpl_step(),
clone_enterprise_step(source = "${DRONE_TAG}"),
init_enterprise_step("release"),
compile_build_cmd("enterprise"),
artifacts_page_step(),
],
edition = "all",
environment = {"EDITION": "all"},
environment = {"EDITION": "enterprise"},
),
]

View File

@ -8,7 +8,7 @@ load(
"prerelease_bucket",
)
grabpl_version = "v3.0.20"
grabpl_version = "v3.0.21"
build_image = "grafana/build-container:v1.7.1"
publish_image = "grafana/grafana-ci-deploy:1.3.3"
deploy_docker_image = "us.gcr.io/kubernetes-dev/drone/plugins/deploy-image"
@ -1520,13 +1520,13 @@ def artifacts_page_step():
"name": "artifacts-page",
"image": build_image,
"depends_on": [
"grabpl",
"compile-build-cmd",
],
"environment": {
"GCP_KEY": from_secret("gcp_key"),
},
"commands": [
"./bin/grabpl artifacts-page",
"./bin/build artifacts-page",
],
}