[WIP] CI: Removes enterprise specific pipelines and steps (#70815)
* Removes enterprise specific pipelines and steps (#123)
* Comment out enterprise related pipelines and steps
* Suppress unused variable warning
* Removes all edition arguments
* Remove leftover comments
* Remove redundant oss on pipelines and steps names
* Remove leftover unused variable
* Remove leftovers
* Remove pipeline dependencies
* Rename pipelines
* Fix starlark
---------
Co-authored-by: dsotirakis <dimitrios.sotirakis@grafana.com>
(cherry picked from commit 642a81ba75e79138246797302aba5c35575f030d)
* Add editions for static assets
(cherry picked from commit b13939b9af)
Co-authored-by: Dimitris Sotirakis <dimitrios.sotirakis@grafana.com>
54 lines
1.0 KiB
Plaintext
54 lines
1.0 KiB
Plaintext
"""
|
|
This module returns a Drone step and pipeline for linting with shellcheck.
|
|
"""
|
|
|
|
load("scripts/drone/steps/lib.star", "compile_build_cmd")
|
|
load(
|
|
"scripts/drone/utils/utils.star",
|
|
"pipeline",
|
|
)
|
|
load(
|
|
"scripts/drone/utils/images.star",
|
|
"images",
|
|
)
|
|
|
|
trigger = {
|
|
"event": [
|
|
"pull_request",
|
|
],
|
|
"paths": {
|
|
"exclude": [
|
|
"*.md",
|
|
"docs/**",
|
|
"latest.json",
|
|
],
|
|
"include": ["scripts/**/*.sh"],
|
|
},
|
|
}
|
|
|
|
def shellcheck_step():
|
|
return {
|
|
"name": "shellcheck",
|
|
"image": images["build_image"],
|
|
"depends_on": [
|
|
"compile-build-cmd",
|
|
],
|
|
"commands": [
|
|
"./bin/build shellcheck",
|
|
],
|
|
}
|
|
|
|
def shellcheck_pipeline():
|
|
environment = {"EDITION": "oss"}
|
|
steps = [
|
|
compile_build_cmd(),
|
|
shellcheck_step(),
|
|
]
|
|
return pipeline(
|
|
name = "pr-shellcheck",
|
|
trigger = trigger,
|
|
services = [],
|
|
steps = steps,
|
|
environment = environment,
|
|
)
|