@ -147,10 +147,31 @@ steps:
- yarn-install
image : grafana/build-container:v1.7.1
name : betterer-frontend
- commands:
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
| jq .head.repo.fork)
- if [ "$is_fork" != false ]; then return 1; fi
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
../grafana-enterprise
- cd ../grafana-enterprise
- if git checkout ${DRONE_SOURCE_BRANCH}; then echo "checked out ${DRONE_SOURCE_BRANCH}";
elif git checkout ${DRONE_TARGET_BRANCH}; then echo "git checkout ${DRONE_TARGET_BRANCH}";
else git checkout main; fi
- cd ../
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
failure : ignore
image : grafana/build-container:v1.7.1
name : clone-enterprise
- commands:
- yarn run ci:test-frontend
depends_on:
- yarn-install
- clone-enterprise
environment:
TEST_MAX_WORKERS : 50 %
image : grafana/build-container:v1.7.1
@ -189,6 +210,26 @@ platform:
os : linux
services : [ ]
steps:
- commands:
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
| jq .head.repo.fork)
- if [ "$is_fork" != false ]; then return 1; fi
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
../grafana-enterprise
- cd ../grafana-enterprise
- if git checkout ${DRONE_SOURCE_BRANCH}; then echo "checked out ${DRONE_SOURCE_BRANCH}";
elif git checkout ${DRONE_TARGET_BRANCH}; then echo "git checkout ${DRONE_TARGET_BRANCH}";
else git checkout main; fi
- cd ../
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
failure : ignore
image : grafana/build-container:v1.7.1
name : clone-enterprise
- commands:
- echo $DRONE_RUNNER_NAME
image : alpine:3.15.6
@ -205,6 +246,7 @@ steps:
- yarn run typecheck
depends_on:
- yarn-install
- clone-enterprise
environment:
TEST_MAX_WORKERS : 50 %
image : grafana/build-container:v1.7.1
@ -243,6 +285,26 @@ platform:
os : linux
services : [ ]
steps:
- commands:
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
| jq .head.repo.fork)
- if [ "$is_fork" != false ]; then return 1; fi
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
../grafana-enterprise
- cd ../grafana-enterprise
- if git checkout ${DRONE_SOURCE_BRANCH}; then echo "checked out ${DRONE_SOURCE_BRANCH}";
elif git checkout ${DRONE_TARGET_BRANCH}; then echo "git checkout ${DRONE_TARGET_BRANCH}";
else git checkout main; fi
- cd ../
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
failure : ignore
image : grafana/build-container:v1.7.1
name : clone-enterprise
- commands:
- echo $DRONE_RUNNER_NAME
image : alpine:3.15.6
@ -260,7 +322,8 @@ steps:
- '# The following command will fail if running code generators produces any diff
in output.'
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
depends_on:
- clone-enterprise
image : grafana/build-container:v1.7.1
name : verify-gen-cue
- commands:
@ -268,7 +331,8 @@ steps:
- '# The following command will fail if running code generators produces any diff
in output.'
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
depends_on:
- clone-enterprise
image : grafana/build-container:v1.7.1
name : verify-gen-jsonnet
- commands:
@ -338,9 +402,30 @@ steps:
CGO_ENABLED : 0
image : golang:1.19.4
name : compile-build-cmd
- commands:
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
| jq .head.repo.fork)
- if [ "$is_fork" != false ]; then return 1; fi
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
../grafana-enterprise
- cd ../grafana-enterprise
- if git checkout ${DRONE_SOURCE_BRANCH}; then echo "checked out ${DRONE_SOURCE_BRANCH}";
elif git checkout ${DRONE_TARGET_BRANCH}; then echo "git checkout ${DRONE_TARGET_BRANCH}";
else git checkout main; fi
- cd ../
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
failure : ignore
image : grafana/build-container:v1.7.1
name : clone-enterprise
- commands:
- make gen-go
depends_on : [ ]
depends_on:
- clone-enterprise
image : grafana/build-container:v1.7.1
name : wire-install
- commands:
@ -727,6 +812,26 @@ services:
- name : mysql
path : /var/lib/mysql
steps:
- commands:
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
| jq .head.repo.fork)
- if [ "$is_fork" != false ]; then return 1; fi
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
../grafana-enterprise
- cd ../grafana-enterprise
- if git checkout ${DRONE_SOURCE_BRANCH}; then echo "checked out ${DRONE_SOURCE_BRANCH}";
elif git checkout ${DRONE_TARGET_BRANCH}; then echo "git checkout ${DRONE_TARGET_BRANCH}";
else git checkout main; fi
- cd ../
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
failure : ignore
image : grafana/build-container:v1.7.1
name : clone-enterprise
- commands:
- mkdir -p bin
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v3.0.20/grabpl
@ -750,7 +855,8 @@ steps:
- '# The following command will fail if running code generators produces any diff
in output.'
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
depends_on:
- clone-enterprise
image : grafana/build-container:v1.7.1
name : verify-gen-cue
- commands:
@ -758,7 +864,8 @@ steps:
- '# The following command will fail if running code generators produces any diff
in output.'
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
depends_on:
- clone-enterprise
image : grafana/build-container:v1.7.1
name : verify-gen-jsonnet
- commands:
@ -1717,6 +1824,26 @@ services:
- name : mysql
path : /var/lib/mysql
steps:
- commands:
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
| jq .head.repo.fork)
- if [ "$is_fork" != false ]; then return 1; fi
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
../grafana-enterprise
- cd ../grafana-enterprise
- if git checkout ${DRONE_SOURCE_BRANCH}; then echo "checked out ${DRONE_SOURCE_BRANCH}";
elif git checkout ${DRONE_TARGET_BRANCH}; then echo "git checkout ${DRONE_TARGET_BRANCH}";
else git checkout main; fi
- cd ../
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
failure : ignore
image : grafana/build-container:v1.7.1
name : clone-enterprise
- commands:
- mkdir -p bin
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v3.0.20/grabpl
@ -1740,7 +1867,8 @@ steps:
- '# The following command will fail if running code generators produces any diff
in output.'
- CODEGEN_VERIFY=1 make gen-cue
depends_on : [ ]
depends_on:
- clone-enterprise
image : grafana/build-container:v1.7.1
name : verify-gen-cue
- commands:
@ -1748,7 +1876,8 @@ steps:
- '# The following command will fail if running code generators produces any diff
in output.'
- CODEGEN_VERIFY=1 make gen-jsonnet
depends_on : [ ]
depends_on:
- clone-enterprise
image : grafana/build-container:v1.7.1
name : verify-gen-jsonnet
- commands:
@ -6516,6 +6645,6 @@ kind: secret
name : aws_secret_access_key
---
kind : signature
hmac : 34e5513fe0155e3ca6a7e0cf8b908cc67a0565c963ef3c55688bff2837392900
hmac : a46e69b6221d00313d924e36021b8f956a6cfa18c23a6a063891b586075717b9
...