mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 08:18:10 -05:00
Drone: Fix grafana-mixin linting (#28308)
* Drone: Fix Starlark script Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * grafana-mixin: Move build logic to scripts Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * Drone: Use mixin scripts Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * CI build image: Install jsonnetfmt and mixtool Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * Makefile: Print commands Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
@@ -155,7 +155,11 @@ RUN cd /tmp && \
|
||||
tar xf x86_64-linux-musl-cross.tgz && \
|
||||
rm x86_64-linux-musl-cross.tgz
|
||||
|
||||
RUN go get -u github.com/mgechev/revive@v1.0.2
|
||||
RUN mv ${GOPATH}/bin/revive /usr/local/bin/
|
||||
RUN go get -u github.com/mgechev/revive@v1.0.2 && \
|
||||
mv ${GOPATH}/bin/revive /usr/local/bin/ && \
|
||||
go get github.com/google/go-jsonnet/cmd/jsonnetfmt && \
|
||||
mv ${GOPATH}/bin/jsonnetfmt /usr/local/bin/ && \
|
||||
go get github.com/monitoring-mixins/mixtool/cmd/mixtool && \
|
||||
mv ${GOPATH}/bin/mixtool /usr/local/bin/
|
||||
|
||||
COPY ./bootstrap.sh /tmp/bootstrap.sh
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
_version="1.2.27"
|
||||
_version="1.2.28"
|
||||
_tag="grafana/build-container:${_version}"
|
||||
|
||||
_dpath=$(dirname "${BASH_SOURCE[0]}")
|
||||
|
||||
+3
-2
@@ -1,5 +1,5 @@
|
||||
grabpl_version = '0.5.18'
|
||||
build_image = 'grafana/build-container:1.2.27'
|
||||
build_image = 'grafana/build-container:1.2.28'
|
||||
publish_image = 'grafana/grafana-ci-deploy:1.2.6'
|
||||
grafana_docker_image = 'grafana/drone-grafana-docker:0.3.2'
|
||||
alpine_image = 'alpine:3.12'
|
||||
@@ -224,7 +224,8 @@ def lint_backend_step(edition):
|
||||
'revive -formatter stylish -config scripts/go/configs/revive.toml ./pkg/...',
|
||||
'./scripts/revive-strict',
|
||||
'./scripts/tidy-check.sh',
|
||||
'./scripts/mixin-check.sh,
|
||||
'./grafana-mixin/scripts/lint.sh',
|
||||
'./grafana-mixin/scripts/build.sh',
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user