Chore: Fix tag build (#108343)

* baldm0mma/ add bash to dagger download and github app pipeline volumes

* baldm0mma/ run drone starlark convert

* baldm0mma/ run make drone

* Add docstring and fix formatting for rgm_tag function

- Add proper docstring to rgm_tag() function per Starlark linting requirements
- Fix formatting with buildifier
- Resolves pr-verify-starlark linting issues
This commit is contained in:
Jev Forsberg
2025-07-18 13:13:06 -06:00
committed by GitHub
parent dc6bd2a20a
commit 481751c145
3 changed files with 47 additions and 12 deletions
+1 -1
View File
@@ -5,5 +5,5 @@ Utilities / functions for working with dagger pipelines
def with_dagger_install(commands = [], dagger_version = ""):
return [
"wget -qO- https://github.com/dagger/dagger/releases/download/{}/dagger_{}_linux_amd64.tar.gz | tar zx -C /bin".format(dagger_version, dagger_version),
"apk add docker",
"apk add docker bash",
] + commands
+16 -2
View File
@@ -210,11 +210,25 @@ def rgm_main():
)
def rgm_tag():
# Runs a package / build process (with all distros) when a tag is made
"""Tag release pipeline that builds and packages all distributions.
Returns:
Drone pipeline.
"""
generate_token_step = github_app_generate_token_step()
build_steps = rgm_run("rgm-build", "drone_build_tag_grafana.sh")
# Add dependency on token generation step
for step in build_steps:
step["depends_on"] = [generate_token_step["name"]]
steps = [generate_token_step] + build_steps
return pipeline(
name = "rgm-tag-prerelease",
trigger = tag_trigger,
steps = rgm_run("rgm-build", "drone_build_tag_grafana.sh"),
steps = steps,
volumes = github_app_step_volumes() + github_app_pipeline_volumes(),
)
def rgm_version_branch():