@ -25,7 +25,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- ./bin/build verify-drone
@ -75,7 +75,7 @@ steps:
- go install github.com/bazelbuild/buildtools/buildifier@latest
- buildifier --lint=warn -mode=check -r .
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : lint-starlark
trigger:
event:
@ -424,7 +424,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
- commands:
- '# It is required that generated jsonnet is committed and in sync with its inputs.'
@ -433,21 +433,21 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-jsonnet
- commands:
- apk add --update make
- make gen-go
depends_on:
- verify-gen-cue
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- apk add --update build-base shared-mime-info shared-mime-info-lang
- go list -f '{{.Dir}}/...' -m | xargs go test -short -covermode=atomic -timeout=5m
depends_on:
- wire-install
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : test-backend
- commands:
- apk add --update build-base
@ -456,7 +456,7 @@ steps:
| grep -o '\(.*\)/' | sort -u)
depends_on:
- wire-install
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : test-backend-integration
trigger:
event:
@ -510,7 +510,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
@ -554,16 +554,16 @@ steps:
- apk add --update make
- make gen-go
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- go run scripts/modowners/modowners.go check go.mod
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : validate-modfile
- commands:
- apk add --update make
- make swagger-validate
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : validate-openapi-spec
trigger:
event:
@ -638,7 +638,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- '# It is required that code generated from Thema/CUE be committed and in sync
@ -648,7 +648,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
- commands:
- '# It is required that generated jsonnet is committed and in sync with its inputs.'
@ -657,7 +657,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-jsonnet
- commands:
- yarn install --immutable || yarn install --immutable
@ -693,7 +693,7 @@ steps:
- /src/grafana-build artifacts -a targz:grafana:linux/amd64 -a targz:grafana:linux/arm64
-a targz:grafana:linux/arm/v7 -a docker:grafana:linux/amd64 -a docker:grafana:linux/amd64:ubuntu
-a docker:grafana:linux/arm64 -a docker:grafana:linux/arm64:ubuntu -a docker:grafana:linux/arm/v7
-a docker:grafana:linux/arm/v7:ubuntu --go-version=1.23.1 --yarn-cache=$$YARN_CACHE_FOLDER
-a docker:grafana:linux/arm/v7:ubuntu --go-version=1.23.5 --yarn-cache=$$YARN_CACHE_FOLDER
--build-id=$$DRONE_BUILD_NUMBER --ubuntu-base=ubuntu:22.04 --alpine-base=alpine:3.20.3
--tag-format='{{ .version_base }}-{{ .buildID }}-{{ .arch }}' --ubuntu-tag-format='{{
.version_base }}-{{ .buildID }}-ubuntu-{{ .arch }}' --verify='false' --grafana-dir=$$PWD
@ -1101,7 +1101,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- echo $DRONE_RUNNER_NAME
@ -1115,7 +1115,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
- commands:
- '# It is required that generated jsonnet is committed and in sync with its inputs.'
@ -1124,14 +1124,14 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-jsonnet
- commands:
- apk add --update make
- make gen-go
depends_on:
- verify-gen-cue
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- dockerize -wait tcp://postgres:5432 -timeout 120s
@ -1152,7 +1152,7 @@ steps:
GRAFANA_TEST_DB : postgres
PGPASSWORD : grafanatest
POSTGRES_HOST : postgres
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : postgres-integration-tests
- commands:
- dockerize -wait tcp://mysql57:3306 -timeout 120s
@ -1160,9 +1160,9 @@ steps:
name : wait-for-mysql-5.7
- commands:
- apk add --update build-base
- apk add --update mysql -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql57 -P 3306 -u root
- prootpass
- apk add --update mariadb -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mariadb -h mysql57 -P 3306 -u
root - prootpass --disable-ssl-verify-server-cert
- go clean -testcache
- go test -p=1 -count=1 -covermode=atomic -timeout=5m -run '^TestIntegration' $(find
./pkg -type f -name '*_test.go' -exec grep -l '^func TestIntegration' '{}' '+'
@ -1173,7 +1173,7 @@ steps:
environment:
GRAFANA_TEST_DB : mysql
MYSQL_HOST : mysql57
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : mysql-5.7-integration-tests
- commands:
- dockerize -wait tcp://mysql80:3306 -timeout 120s
@ -1181,9 +1181,9 @@ steps:
name : wait-for-mysql-8.0
- commands:
- apk add --update build-base
- apk add --update mysql -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql80 -P 3306 -u root
- prootpass
- apk add --update mariadb -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mariadb -h mysql80 -P 3306 -u
root - prootpass --disable-ssl-verify-server-cert
- go clean -testcache
- go test -p=1 -count=1 -covermode=atomic -timeout=5m -run '^TestIntegration' $(find
./pkg -type f -name '*_test.go' -exec grep -l '^func TestIntegration' '{}' '+'
@ -1194,7 +1194,7 @@ steps:
environment:
GRAFANA_TEST_DB : mysql
MYSQL_HOST : mysql80
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : mysql-8.0-integration-tests
- commands:
- dockerize -wait tcp://redis:6379 -timeout 120s
@ -1210,7 +1210,7 @@ steps:
- wait-for-redis
environment:
REDIS_URL : redis://redis:6379/0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : redis-integration-tests
- commands:
- dockerize -wait tcp://memcached:11211 -timeout 120s
@ -1226,7 +1226,7 @@ steps:
- wait-for-memcached
environment:
MEMCACHED_HOSTS : memcached:11211
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : memcached-integration-tests
- commands:
- dockerize -wait tcp://mimir_backend:8080 -timeout 120s
@ -1243,7 +1243,7 @@ steps:
AM_TENANT_ID : test
AM_URL : http://mimir_backend:8080
failure : ignore
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : remote-alertmanager-integration-tests
trigger:
event:
@ -1333,7 +1333,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
trigger:
event:
@ -1453,7 +1453,7 @@ steps:
&& return 1; fi
depends_on:
- clone-enterprise
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : swagger-gen
trigger:
event:
@ -1568,7 +1568,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- '# It is required that code generated from Thema/CUE be committed and in sync
@ -1579,7 +1579,7 @@ steps:
- CODEGEN_VERIFY=1 make gen-cue
depends_on:
- clone-enterprise
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
- commands:
- '# It is required that generated jsonnet is committed and in sync with its inputs.'
@ -1589,14 +1589,14 @@ steps:
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on:
- clone-enterprise
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-jsonnet
- commands:
- apk add --update make
- make gen-go
depends_on:
- verify-gen-cue
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- apk add --update build-base
@ -1604,7 +1604,7 @@ steps:
- go test -v -run=^$ -benchmem -timeout=1h -count=8 -bench=. ${GO_PACKAGES}
depends_on:
- wire-install
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : sqlite-benchmark-integration-tests
- commands:
- apk add --update build-base
@ -1616,7 +1616,7 @@ steps:
GRAFANA_TEST_DB : postgres
PGPASSWORD : grafanatest
POSTGRES_HOST : postgres
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : postgres-benchmark-integration-tests
- commands:
- apk add --update build-base
@ -1627,7 +1627,7 @@ steps:
environment:
GRAFANA_TEST_DB : mysql
MYSQL_HOST : mysql57
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : mysql-5.7-benchmark-integration-tests
- commands:
- apk add --update build-base
@ -1638,7 +1638,7 @@ steps:
environment:
GRAFANA_TEST_DB : mysql
MYSQL_HOST : mysql80
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : mysql-8.0-benchmark-integration-tests
trigger:
event:
@ -1718,7 +1718,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
trigger:
branch : main
@ -1891,7 +1891,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
- commands:
- '# It is required that generated jsonnet is committed and in sync with its inputs.'
@ -1900,21 +1900,21 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-jsonnet
- commands:
- apk add --update make
- make gen-go
depends_on:
- verify-gen-cue
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- apk add --update build-base shared-mime-info shared-mime-info-lang
- go list -f '{{.Dir}}/...' -m | xargs go test -short -covermode=atomic -timeout=5m
depends_on:
- wire-install
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : test-backend
- commands:
- apk add --update build-base
@ -1923,7 +1923,7 @@ steps:
| grep -o '\(.*\)/' | sort -u)
depends_on:
- wire-install
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : test-backend-integration
trigger:
branch : main
@ -1968,22 +1968,22 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- apk add --update make
- make gen-go
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- go run scripts/modowners/modowners.go check go.mod
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : validate-modfile
- commands:
- apk add --update make
- make swagger-validate
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : validate-openapi-spec
- commands:
- ./bin/build verify-drone
@ -2114,7 +2114,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- '# It is required that code generated from Thema/CUE be committed and in sync
@ -2124,7 +2124,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
- commands:
- '# It is required that generated jsonnet is committed and in sync with its inputs.'
@ -2133,7 +2133,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-jsonnet
- commands:
- yarn install --immutable || yarn install --immutable
@ -2168,7 +2168,7 @@ steps:
- /src/grafana-build artifacts -a targz:grafana:linux/amd64 -a targz:grafana:linux/arm64
-a targz:grafana:linux/arm/v7 -a docker:grafana:linux/amd64 -a docker:grafana:linux/amd64:ubuntu
-a docker:grafana:linux/arm64 -a docker:grafana:linux/arm64:ubuntu -a docker:grafana:linux/arm/v7
-a docker:grafana:linux/arm/v7:ubuntu --go-version=1.23.1 --yarn-cache=$$YARN_CACHE_FOLDER
-a docker:grafana:linux/arm/v7:ubuntu --go-version=1.23.5 --yarn-cache=$$YARN_CACHE_FOLDER
--build-id=$$DRONE_BUILD_NUMBER --ubuntu-base=ubuntu:22.04 --alpine-base=alpine:3.20.3
--tag-format='{{ .version_base }}-{{ .buildID }}-{{ .arch }}' --ubuntu-tag-format='{{
.version_base }}-{{ .buildID }}-ubuntu-{{ .arch }}' --verify='false' --grafana-dir=$$PWD
@ -2654,7 +2654,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- echo $DRONE_RUNNER_NAME
@ -2668,7 +2668,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
- commands:
- '# It is required that generated jsonnet is committed and in sync with its inputs.'
@ -2677,14 +2677,14 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-jsonnet
- commands:
- apk add --update make
- make gen-go
depends_on:
- verify-gen-cue
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- dockerize -wait tcp://postgres:5432 -timeout 120s
@ -2705,7 +2705,7 @@ steps:
GRAFANA_TEST_DB : postgres
PGPASSWORD : grafanatest
POSTGRES_HOST : postgres
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : postgres-integration-tests
- commands:
- dockerize -wait tcp://mysql57:3306 -timeout 120s
@ -2713,9 +2713,9 @@ steps:
name : wait-for-mysql-5.7
- commands:
- apk add --update build-base
- apk add --update mysql -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql57 -P 3306 -u root
- prootpass
- apk add --update mariadb -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mariadb -h mysql57 -P 3306 -u
root - prootpass --disable-ssl-verify-server-cert
- go clean -testcache
- go test -p=1 -count=1 -covermode=atomic -timeout=5m -run '^TestIntegration' $(find
./pkg -type f -name '*_test.go' -exec grep -l '^func TestIntegration' '{}' '+'
@ -2726,7 +2726,7 @@ steps:
environment:
GRAFANA_TEST_DB : mysql
MYSQL_HOST : mysql57
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : mysql-5.7-integration-tests
- commands:
- dockerize -wait tcp://mysql80:3306 -timeout 120s
@ -2734,9 +2734,9 @@ steps:
name : wait-for-mysql-8.0
- commands:
- apk add --update build-base
- apk add --update mysql -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql80 -P 3306 -u root
- prootpass
- apk add --update mariadb -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mariadb -h mysql80 -P 3306 -u
root - prootpass --disable-ssl-verify-server-cert
- go clean -testcache
- go test -p=1 -count=1 -covermode=atomic -timeout=5m -run '^TestIntegration' $(find
./pkg -type f -name '*_test.go' -exec grep -l '^func TestIntegration' '{}' '+'
@ -2747,7 +2747,7 @@ steps:
environment:
GRAFANA_TEST_DB : mysql
MYSQL_HOST : mysql80
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : mysql-8.0-integration-tests
- commands:
- dockerize -wait tcp://redis:6379 -timeout 120s
@ -2763,7 +2763,7 @@ steps:
- wait-for-redis
environment:
REDIS_URL : redis://redis:6379/0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : redis-integration-tests
- commands:
- dockerize -wait tcp://memcached:11211 -timeout 120s
@ -2779,7 +2779,7 @@ steps:
- wait-for-memcached
environment:
MEMCACHED_HOSTS : memcached:11211
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : memcached-integration-tests
- commands:
- dockerize -wait tcp://mimir_backend:8080 -timeout 120s
@ -2796,7 +2796,7 @@ steps:
AM_TENANT_ID : test
AM_URL : http://mimir_backend:8080
failure : ignore
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : remote-alertmanager-integration-tests
trigger:
branch : main
@ -3058,7 +3058,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
- commands:
- '# It is required that generated jsonnet is committed and in sync with its inputs.'
@ -3067,21 +3067,21 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-jsonnet
- commands:
- apk add --update make
- make gen-go
depends_on:
- verify-gen-cue
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- apk add --update build-base shared-mime-info shared-mime-info-lang
- go list -f '{{.Dir}}/...' -m | xargs go test -short -covermode=atomic -timeout=5m
depends_on:
- wire-install
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : test-backend
- commands:
- apk add --update build-base
@ -3090,7 +3090,7 @@ steps:
| grep -o '\(.*\)/' | sort -u)
depends_on:
- wire-install
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : test-backend-integration
trigger:
branch:
@ -3133,22 +3133,22 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- apk add --update make
- make gen-go
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- go run scripts/modowners/modowners.go check go.mod
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : validate-modfile
- commands:
- apk add --update make
- make swagger-validate
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : validate-openapi-spec
trigger:
branch:
@ -3238,7 +3238,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- echo $DRONE_RUNNER_NAME
@ -3252,7 +3252,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
- commands:
- '# It is required that generated jsonnet is committed and in sync with its inputs.'
@ -3261,14 +3261,14 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-jsonnet
- commands:
- apk add --update make
- make gen-go
depends_on:
- verify-gen-cue
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- dockerize -wait tcp://postgres:5432 -timeout 120s
@ -3289,7 +3289,7 @@ steps:
GRAFANA_TEST_DB : postgres
PGPASSWORD : grafanatest
POSTGRES_HOST : postgres
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : postgres-integration-tests
- commands:
- dockerize -wait tcp://mysql57:3306 -timeout 120s
@ -3297,9 +3297,9 @@ steps:
name : wait-for-mysql-5.7
- commands:
- apk add --update build-base
- apk add --update mysql -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql57 -P 3306 -u root
- prootpass
- apk add --update mariadb -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mariadb -h mysql57 -P 3306 -u
root - prootpass --disable-ssl-verify-server-cert
- go clean -testcache
- go test -p=1 -count=1 -covermode=atomic -timeout=5m -run '^TestIntegration' $(find
./pkg -type f -name '*_test.go' -exec grep -l '^func TestIntegration' '{}' '+'
@ -3310,7 +3310,7 @@ steps:
environment:
GRAFANA_TEST_DB : mysql
MYSQL_HOST : mysql57
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : mysql-5.7-integration-tests
- commands:
- dockerize -wait tcp://mysql80:3306 -timeout 120s
@ -3318,9 +3318,9 @@ steps:
name : wait-for-mysql-8.0
- commands:
- apk add --update build-base
- apk add --update mysql -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql80 -P 3306 -u root
- prootpass
- apk add --update mariadb -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mariadb -h mysql80 -P 3306 -u
root - prootpass --disable-ssl-verify-server-cert
- go clean -testcache
- go test -p=1 -count=1 -covermode=atomic -timeout=5m -run '^TestIntegration' $(find
./pkg -type f -name '*_test.go' -exec grep -l '^func TestIntegration' '{}' '+'
@ -3331,7 +3331,7 @@ steps:
environment:
GRAFANA_TEST_DB : mysql
MYSQL_HOST : mysql80
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : mysql-8.0-integration-tests
- commands:
- dockerize -wait tcp://redis:6379 -timeout 120s
@ -3347,7 +3347,7 @@ steps:
- wait-for-redis
environment:
REDIS_URL : redis://redis:6379/0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : redis-integration-tests
- commands:
- dockerize -wait tcp://memcached:11211 -timeout 120s
@ -3363,7 +3363,7 @@ steps:
- wait-for-memcached
environment:
MEMCACHED_HOSTS : memcached:11211
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : memcached-integration-tests
- commands:
- dockerize -wait tcp://mimir_backend:8080 -timeout 120s
@ -3380,7 +3380,7 @@ steps:
AM_TENANT_ID : test
AM_URL : http://mimir_backend:8080
failure : ignore
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : remote-alertmanager-integration-tests
trigger:
branch:
@ -3483,7 +3483,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- ./bin/build artifacts docker fetch --edition oss
@ -3615,7 +3615,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- ./bin/build artifacts docker fetch --edition oss
@ -3756,7 +3756,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- ./bin/build artifacts packages --artifacts-editions=oss --tag $${DRONE_TAG} --src-bucket
@ -3847,7 +3847,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- yarn install --immutable || yarn install --immutable
@ -3947,7 +3947,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- depends_on:
- compile-build-cmd
@ -4044,7 +4044,7 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- ./bin/build publish grafana-com --edition oss ${DRONE_TAG}
@ -4106,7 +4106,7 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GO_VERSION : 1.23 .1
GO_VERSION : 1.23 .5
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
GPG_PRIVATE_KEY:
@ -4181,7 +4181,7 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GO_VERSION : 1.23 .1
GO_VERSION : 1.23 .5
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
GPG_PRIVATE_KEY:
@ -4238,13 +4238,13 @@ steps:
depends_on : [ ]
environment:
CGO_ENABLED : 0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : compile-build-cmd
- commands:
- ./bin/build whatsnew-checker
depends_on:
- compile-build-cmd
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : whats-new-checker
trigger:
event:
@ -4343,7 +4343,7 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GO_VERSION : 1.23 .1
GO_VERSION : 1.23 .5
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
GPG_PRIVATE_KEY:
@ -4494,7 +4494,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
- commands:
- '# It is required that generated jsonnet is committed and in sync with its inputs.'
@ -4503,21 +4503,21 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-jsonnet
- commands:
- apk add --update make
- make gen-go
depends_on:
- verify-gen-cue
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- apk add --update build-base shared-mime-info shared-mime-info-lang
- go list -f '{{.Dir}}/...' -m | xargs go test -short -covermode=atomic -timeout=5m
depends_on:
- wire-install
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : test-backend
- commands:
- apk add --update build-base
@ -4526,7 +4526,7 @@ steps:
| grep -o '\(.*\)/' | sort -u)
depends_on:
- wire-install
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : test-backend-integration
trigger:
cron:
@ -4580,7 +4580,7 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GO_VERSION : 1.23 .1
GO_VERSION : 1.23 .5
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
GPG_PRIVATE_KEY:
@ -4724,7 +4724,7 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GO_VERSION : 1.23 .1
GO_VERSION : 1.23 .5
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
GPG_PRIVATE_KEY:
@ -4830,7 +4830,7 @@ steps:
- export GITHUB_TOKEN=$(cat /github-app/token)
- 'dagger run --silent /src/grafana-build artifacts -a $${ARTIFACTS} --grafana-ref=$${GRAFANA_REF}
--enterprise-ref=$${ENTERPRISE_REF} --grafana-repo=$${GRAFANA_REPO} --version=$${VERSION} '
- --go-version=1.23.1
- --go-version=1.23.5
depends_on:
- github-app-generate-token
environment:
@ -4851,7 +4851,7 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GO_VERSION : 1.23 .1
GO_VERSION : 1.23 .5
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
GPG_PRIVATE_KEY:
@ -4996,7 +4996,7 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-cue
- commands:
- '# It is required that generated jsonnet is committed and in sync with its inputs.'
@ -5005,14 +5005,14 @@ steps:
- apk add --update make
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : verify-gen-jsonnet
- commands:
- apk add --update make
- make gen-go
depends_on:
- verify-gen-cue
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : wire-install
- commands:
- dockerize -wait tcp://postgres:5432 -timeout 120s
@ -5033,7 +5033,7 @@ steps:
GRAFANA_TEST_DB : postgres
PGPASSWORD : grafanatest
POSTGRES_HOST : postgres
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : postgres-integration-tests
- commands:
- dockerize -wait tcp://mysql57:3306 -timeout 120s
@ -5041,9 +5041,9 @@ steps:
name : wait-for-mysql-5.7
- commands:
- apk add --update build-base
- apk add --update mysql -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql57 -P 3306 -u root
- prootpass
- apk add --update mariadb -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mariadb -h mysql57 -P 3306 -u
root - prootpass --disable-ssl-verify-server-cert
- go clean -testcache
- go test -p=1 -count=1 -covermode=atomic -timeout=5m -run '^TestIntegration' $(find
./pkg -type f -name '*_test.go' -exec grep -l '^func TestIntegration' '{}' '+'
@ -5054,7 +5054,7 @@ steps:
environment:
GRAFANA_TEST_DB : mysql
MYSQL_HOST : mysql57
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : mysql-5.7-integration-tests
- commands:
- dockerize -wait tcp://mysql80:3306 -timeout 120s
@ -5062,9 +5062,9 @@ steps:
name : wait-for-mysql-8.0
- commands:
- apk add --update build-base
- apk add --update mysql -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h mysql80 -P 3306 -u root
- prootpass
- apk add --update mariadb -client
- cat devenv/docker/blocks/mysql_tests/setup.sql | mariadb -h mysql80 -P 3306 -u
root - prootpass --disable-ssl-verify-server-cert
- go clean -testcache
- go test -p=1 -count=1 -covermode=atomic -timeout=5m -run '^TestIntegration' $(find
./pkg -type f -name '*_test.go' -exec grep -l '^func TestIntegration' '{}' '+'
@ -5075,7 +5075,7 @@ steps:
environment:
GRAFANA_TEST_DB : mysql
MYSQL_HOST : mysql80
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : mysql-8.0-integration-tests
- commands:
- dockerize -wait tcp://redis:6379 -timeout 120s
@ -5091,7 +5091,7 @@ steps:
- wait-for-redis
environment:
REDIS_URL : redis://redis:6379/0
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : redis-integration-tests
- commands:
- dockerize -wait tcp://memcached:11211 -timeout 120s
@ -5107,7 +5107,7 @@ steps:
- wait-for-memcached
environment:
MEMCACHED_HOSTS : memcached:11211
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : memcached-integration-tests
- commands:
- dockerize -wait tcp://mimir_backend:8080 -timeout 120s
@ -5124,7 +5124,7 @@ steps:
AM_TENANT_ID : test
AM_URL : http://mimir_backend:8080
failure : ignore
image : golang:1.23.1 -alpine
image : golang:1.23.5 -alpine
name : remote-alertmanager-integration-tests
trigger:
event:
@ -5430,7 +5430,7 @@ steps:
- commands:
- trivy --exit-code 0 --severity UNKNOWN,LOW,MEDIUM docker:27-cli
- trivy --exit-code 0 --severity UNKNOWN,LOW,MEDIUM alpine/git:2.40.1
- trivy --exit-code 0 --severity UNKNOWN,LOW,MEDIUM golang:1.23.1 -alpine
- trivy --exit-code 0 --severity UNKNOWN,LOW,MEDIUM golang:1.23.5 -alpine
- trivy --exit-code 0 --severity UNKNOWN,LOW,MEDIUM node:20.9.0-alpine
- trivy --exit-code 0 --severity UNKNOWN,LOW,MEDIUM node:20-bookworm
- trivy --exit-code 0 --severity UNKNOWN,LOW,MEDIUM google/cloud-sdk:431.0.0
@ -5469,7 +5469,7 @@ steps:
- commands:
- trivy --exit-code 1 --severity HIGH,CRITICAL docker:27-cli
- trivy --exit-code 1 --severity HIGH,CRITICAL alpine/git:2.40.1
- trivy --exit-code 1 --severity HIGH,CRITICAL golang:1.23.1 -alpine
- trivy --exit-code 1 --severity HIGH,CRITICAL golang:1.23.5 -alpine
- trivy --exit-code 1 --severity HIGH,CRITICAL node:20.9.0-alpine
- trivy --exit-code 1 --severity HIGH,CRITICAL node:20-bookworm
- trivy --exit-code 1 --severity HIGH,CRITICAL google/cloud-sdk:431.0.0
@ -5739,6 +5739,6 @@ kind: secret
name : gcr_credentials
---
kind : signature
hmac : 65ebf9abca7cfdb688c77bb47650aad3e4716a4a23350ef7a601de48f56ed02e
hmac : be19150e8d9c93d3e71e570e9e8c6a13310bbde351260ccc73f7b2c515f8d511
...