@@ -633,8 +633,8 @@ def frontend_metrics_step(trigger = None):
|
||||
},
|
||||
"failure": "ignore",
|
||||
"commands": [
|
||||
"apk add --update bash",
|
||||
"./scripts/ci-frontend-metrics.sh | ./bin/build publish-metrics $${GRAFANA_MISC_STATS_API_KEY}",
|
||||
"apk add --update bash grep",
|
||||
"./scripts/ci-frontend-metrics.sh | ./bin/build publish-metrics $$GRAFANA_MISC_STATS_API_KEY",
|
||||
],
|
||||
}
|
||||
if trigger:
|
||||
|
||||
@@ -3,6 +3,11 @@ Individual steps that use 'grafana-build' to replace existing individual steps.
|
||||
These aren't used in releases.
|
||||
"""
|
||||
|
||||
load(
|
||||
"scripts/drone/variables.star",
|
||||
"golang_version",
|
||||
)
|
||||
|
||||
# rgm_package_step will create a tar.gz for use in e2e tests or other PR testing related activities..
|
||||
def rgm_package_step(distros = "linux/amd64,linux/arm64", file = "packages.txt"):
|
||||
return {
|
||||
@@ -12,6 +17,7 @@ def rgm_package_step(distros = "linux/amd64,linux/arm64", file = "packages.txt")
|
||||
"depends_on": ["yarn-install"],
|
||||
"commands": [
|
||||
"/src/grafana-build package --distro={} ".format(distros) +
|
||||
"--go-version={} ".format(golang_version) +
|
||||
"--yarn-cache=$$YARN_CACHE_FOLDER " +
|
||||
"--build-id=$$DRONE_BUILD_NUMBER " +
|
||||
"--grafana-dir=$$PWD > {}".format(file),
|
||||
@@ -28,7 +34,9 @@ def rgm_build_backend_step(distros = "linux/amd64,linux/arm64"):
|
||||
"image": "grafana/grafana-build:main",
|
||||
"pull": "always",
|
||||
"commands": [
|
||||
"/src/grafana-build build --distro={} --grafana-dir=$$PWD".format(distros),
|
||||
"/src/grafana-build build " +
|
||||
"--go-version={} ".format(golang_version) +
|
||||
"--distro={} --grafana-dir=$$PWD".format(distros),
|
||||
],
|
||||
"volumes": [{"name": "docker", "path": "/var/run/docker.sock"}],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user