@ -127,12 +127,27 @@ steps:
- yarn-install
image : node:20.9.0-alpine
name : betterer-frontend
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
environment:
GITHUB_APP_ID:
from_secret : github-app-app-id
GITHUB_APP_INSTALLATION_ID:
from_secret : github-app-installation-id
GITHUB_APP_PRIVATE_KEY:
from_secret : github-app-private-key
image : us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
name : github-app-generate-token
volumes:
- name : github-app
path : /github-app
- commands:
- apk add --update curl jq bash
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
- GITHUB_TOKEN=$(cat /github-app/token)
- is_fork=$(curl --retry 5 "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"
- git clone "https://x-access-token: $${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}";
@ -142,12 +157,14 @@ steps:
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
depends_on:
- github-app-generate-token
failure : ignore
image : alpine/git:2.40.1
name : clone-enterprise
volumes:
- name : github-app
path : /github-app
- commands:
- yarn run ci:test-frontend
depends_on:
@ -173,6 +190,8 @@ volumes:
- host:
path : /var/run/docker.sock
name : docker
- name : github-app
temp : {}
---
clone:
retries : 3
@ -191,12 +210,27 @@ platform:
os : linux
services : [ ]
steps:
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
environment:
GITHUB_APP_ID:
from_secret : github-app-app-id
GITHUB_APP_INSTALLATION_ID:
from_secret : github-app-installation-id
GITHUB_APP_PRIVATE_KEY:
from_secret : github-app-private-key
image : us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
name : github-app-generate-token
volumes:
- name : github-app
path : /github-app
- commands:
- apk add --update curl jq bash
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
- GITHUB_TOKEN=$(cat /github-app/token)
- is_fork=$(curl --retry 5 "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"
- git clone "https://x-access-token: $${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}";
@ -206,12 +240,14 @@ steps:
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
depends_on:
- github-app-generate-token
failure : ignore
image : alpine/git:2.40.1
name : clone-enterprise
volumes:
- name : github-app
path : /github-app
- commands:
- echo $DRONE_RUNNER_NAME
image : alpine:3.20.3
@ -264,6 +300,8 @@ volumes:
- host:
path : /var/run/docker.sock
name : docker
- name : github-app
temp : {}
---
clone:
retries : 3
@ -282,12 +320,27 @@ platform:
os : linux
services : [ ]
steps:
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
environment:
GITHUB_APP_ID:
from_secret : github-app-app-id
GITHUB_APP_INSTALLATION_ID:
from_secret : github-app-installation-id
GITHUB_APP_PRIVATE_KEY:
from_secret : github-app-private-key
image : us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
name : github-app-generate-token
volumes:
- name : github-app
path : /github-app
- commands:
- apk add --update curl jq bash
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
- GITHUB_TOKEN=$(cat /github-app/token)
- is_fork=$(curl --retry 5 "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"
- git clone "https://x-access-token: $${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}";
@ -297,12 +350,14 @@ steps:
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
depends_on:
- github-app-generate-token
failure : ignore
image : alpine/git:2.40.1
name : clone-enterprise
volumes:
- name : github-app
path : /github-app
- commands:
- echo $DRONE_RUNNER_NAME
image : alpine:3.20.3
@ -372,6 +427,8 @@ volumes:
- host:
path : /var/run/docker.sock
name : docker
- name : github-app
temp : {}
---
clone:
retries : 3
@ -401,12 +458,27 @@ steps:
CGO_ENABLED : 0
image : golang:1.22.7-alpine
name : compile-build-cmd
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
environment:
GITHUB_APP_ID:
from_secret : github-app-app-id
GITHUB_APP_INSTALLATION_ID:
from_secret : github-app-installation-id
GITHUB_APP_PRIVATE_KEY:
from_secret : github-app-private-key
image : us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
name : github-app-generate-token
volumes:
- name : github-app
path : /github-app
- commands:
- apk add --update curl jq bash
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
- GITHUB_TOKEN=$(cat /github-app/token)
- is_fork=$(curl --retry 5 "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"
- git clone "https://x-access-token: $${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}";
@ -416,12 +488,14 @@ steps:
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
depends_on:
- github-app-generate-token
failure : ignore
image : alpine/git:2.40.1
name : clone-enterprise
volumes:
- name : github-app
path : /github-app
- commands:
- apk add --update make
- make gen-go
@ -468,6 +542,8 @@ volumes:
- host:
path : /var/run/docker.sock
name : docker
- name : github-app
temp : {}
---
clone:
retries : 3
@ -486,6 +562,20 @@ platform:
os : linux
services : [ ]
steps:
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
environment:
GITHUB_APP_ID:
from_secret : github-app-app-id
GITHUB_APP_INSTALLATION_ID:
from_secret : github-app-installation-id
GITHUB_APP_PRIVATE_KEY:
from_secret : github-app-private-key
image : us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
name : github-app-generate-token
volumes:
- name : github-app
path : /github-app
- commands:
- echo $DRONE_RUNNER_NAME
image : alpine:3.20.3
@ -621,10 +711,12 @@ steps:
image : cypress/included:13.1.0
name : end-to-end-tests-various-suite
- commands:
- GITHUB_TOKEN=$(cat /github-app/token)
- cd /
- ./cpp-e2e/scripts/ci-run.sh azure ${DRONE_SOURCE_BRANCH}
depends_on:
- grafana-server
- github-app-generate-token
environment:
AZURE_SP_APP_ID:
from_secret : azure_sp_app_id
@ -633,11 +725,12 @@ steps:
AZURE_TENANT:
from_secret : azure_tenant
CYPRESS_CI : "true"
GITHUB_TOKEN:
from_secret : github_token
HOST : grafana-server
image : us-docker.pkg.dev/grafanalabs-dev/cloud-data-sources/e2e-13.1.0:1.0.0
name : end-to-end-tests-cloud-plugins-suite-azure
volumes:
- name : github-app
path : /github-app
when:
paths:
include:
@ -647,6 +740,7 @@ steps:
repo:
- grafana/grafana
- commands:
- export GITHUB_TOKEN=$(cat /github-app/token)
- if [ -z `find ./e2e -type f -name *spec.ts.mp4` ]; then echo 'missing videos';
false ; fi
- apt-get update
@ -666,15 +760,17 @@ steps:
- end-to-end-tests-panels-suite
- end-to-end-tests-smoke-tests-suite
- end-to-end-tests-various-suite
- github-app-generate-token
environment:
E2E_TEST_ARTIFACTS_BUCKET : releng-pipeline-artifacts-dev
GCP_GRAFANA_UPLOAD_ARTIFACTS_KEY:
from_secret : gcp_upload_artifacts_key
GITHUB_TOKEN:
from_secret : github_token
failure : ignore
image : google/cloud-sdk:431.0.0
name : e2e-tests-artifacts-upload
volumes:
- name : github-app
path : /github-app
when:
status:
- success
@ -760,6 +856,8 @@ volumes:
- host:
path : /var/run/docker.sock
name : docker
- name : github-app
temp : {}
---
clone:
retries : 3
@ -823,12 +921,27 @@ services:
image : memcached:1.6.9-alpine
name : memcached
steps:
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
environment:
GITHUB_APP_ID:
from_secret : github-app-app-id
GITHUB_APP_INSTALLATION_ID:
from_secret : github-app-installation-id
GITHUB_APP_PRIVATE_KEY:
from_secret : github-app-private-key
image : us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
name : github-app-generate-token
volumes:
- name : github-app
path : /github-app
- commands:
- apk add --update curl jq bash
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
- GITHUB_TOKEN=$(cat /github-app/token)
- is_fork=$(curl --retry 5 "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"
- git clone "https://x-access-token: $${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}";
@ -838,12 +951,14 @@ steps:
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
depends_on:
- github-app-generate-token
failure : ignore
image : alpine/git:2.40.1
name : clone-enterprise
volumes:
- name : github-app
path : /github-app
- commands:
- mkdir -p bin
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v3.1.1/grabpl
@ -1027,6 +1142,8 @@ volumes:
- name : mysql80
temp:
medium : memory
- name : github-app
temp : {}
---
clone:
retries : 3
@ -1157,23 +1274,44 @@ platform:
os : linux
services : [ ]
steps:
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
environment:
GITHUB_APP_ID:
from_secret : github-app-app-id
GITHUB_APP_INSTALLATION_ID:
from_secret : github-app-installation-id
GITHUB_APP_PRIVATE_KEY:
from_secret : github-app-private-key
image : us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
name : github-app-generate-token
volumes:
- name : github-app
path : /github-app
- commands:
- apk add --update curl jq bash
- is_fork=$(curl "https://$GITHUB_TOKEN@api.github.com/repos/grafana/grafana/pulls/$DRONE_PULL_REQUEST"
- GITHUB_TOKEN=$(cat /github-app/token)
- is_fork=$(curl --retry 5 "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
- git clone "https://x-access-token: $${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 main; then echo "git checkout main"; else git checkout main;
fi
environment:
GITHUB_TOKEN:
from_secret : github_token
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
depends_on:
- github-app-generate-token
failure : ignore
image : alpine/git:2.40.1
name : clone-enterprise
volumes:
- name : github-app
path : /github-app
- commands:
- apk add --update git make
- make swagger-clean && make openapi3-gen
@ -1184,9 +1322,6 @@ steps:
fi
depends_on:
- clone-enterprise
environment:
GITHUB_TOKEN:
from_secret : github_token
image : golang:1.22.7-alpine
name : swagger-gen
trigger:
@ -1203,6 +1338,8 @@ volumes:
- host:
path : /var/run/docker.sock
name : docker
- name : github-app
temp : {}
---
clone:
retries : 3
@ -1266,9 +1403,24 @@ services:
image : memcached:1.6.9-alpine
name : memcached
steps:
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
environment:
GITHUB_APP_ID:
from_secret : github-app-app-id
GITHUB_APP_INSTALLATION_ID:
from_secret : github-app-installation-id
GITHUB_APP_PRIVATE_KEY:
from_secret : github-app-private-key
image : us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
name : github-app-generate-token
volumes:
- name : github-app
path : /github-app
- commands:
- apk add --update curl jq bash
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"
- GITHUB_TOKEN=$(cat /github-app/token)
- git clone "https://x-access-token:$${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}";
@ -1278,12 +1430,14 @@ steps:
- ln -s src grafana
- cd ./grafana-enterprise
- ./build.sh
environment:
GITHUB_TOKEN:
from_secret : github_token
depends_on:
- github-app-generate-token
failure : ignore
image : alpine/git:2.40.1
name : clone-enterprise
volumes:
- name : github-app
path : /github-app
- commands:
- go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd
depends_on : [ ]
@ -1380,6 +1534,8 @@ volumes:
- name : mysql80
temp:
medium : memory
- name : github-app
temp : {}
---
clone:
retries : 3
@ -1759,6 +1915,20 @@ platform:
os : linux
services : [ ]
steps:
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
environment:
GITHUB_APP_ID:
from_secret : github-app-app-id
GITHUB_APP_INSTALLATION_ID:
from_secret : github-app-installation-id
GITHUB_APP_PRIVATE_KEY:
from_secret : github-app-private-key
image : us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
name : github-app-generate-token
volumes:
- name : github-app
path : /github-app
- commands:
- echo $DRONE_RUNNER_NAME
image : alpine:3.20.3
@ -1893,10 +2063,12 @@ steps:
image : cypress/included:13.1.0
name : end-to-end-tests-various-suite
- commands:
- GITHUB_TOKEN=$(cat /github-app/token)
- cd /
- ./cpp-e2e/scripts/ci-run.sh azure ${DRONE_SOURCE_BRANCH}
depends_on:
- grafana-server
- github-app-generate-token
environment:
AZURE_SP_APP_ID:
from_secret : azure_sp_app_id
@ -1905,11 +2077,12 @@ steps:
AZURE_TENANT:
from_secret : azure_tenant
CYPRESS_CI : "true"
GITHUB_TOKEN:
from_secret : github_token
HOST : grafana-server
image : us-docker.pkg.dev/grafanalabs-dev/cloud-data-sources/e2e-13.1.0:1.0.0
name : end-to-end-tests-cloud-plugins-suite-azure
volumes:
- name : github-app
path : /github-app
when:
paths:
include:
@ -1919,6 +2092,7 @@ steps:
repo:
- grafana/grafana
- commands:
- export GITHUB_TOKEN=$(cat /github-app/token)
- if [ -z `find ./e2e -type f -name *spec.ts.mp4` ]; then echo 'missing videos';
false ; fi
- apt-get update
@ -1938,15 +2112,17 @@ steps:
- end-to-end-tests-panels-suite
- end-to-end-tests-smoke-tests-suite
- end-to-end-tests-various-suite
- github-app-generate-token
environment:
E2E_TEST_ARTIFACTS_BUCKET : releng-pipeline-artifacts-dev
GCP_GRAFANA_UPLOAD_ARTIFACTS_KEY:
from_secret : gcp_upload_artifacts_key
GITHUB_TOKEN:
from_secret : github_token
failure : ignore
image : google/cloud-sdk:431.0.0
name : e2e-tests-artifacts-upload
volumes:
- name : github-app
path : /github-app
when:
status:
- success
@ -2151,6 +2327,8 @@ volumes:
- host:
path : /var/run/docker.sock
name : docker
- name : github-app
temp : {}
---
clone:
retries : 3
@ -2736,6 +2914,7 @@ platform:
services : [ ]
steps:
- commands:
- export GITHUB_TOKEN=$(cat /github-app/token)
- apk add perl
- v_target=`echo $${TAG} | perl -pe 's/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/v\1.\2.x/'`
- curl -L $${GH_CLI_URL} | tar -xz --strip-components=1 -C /usr
@ -2744,10 +2923,11 @@ steps:
depends_on : [ ]
environment:
GH_CLI_URL : https://github.com/cli/cli/releases/download/v2.50.0/gh_2.50.0_linux_amd64.tar.gz
GITHUB_TOKEN:
from_secret : github_token
image : byrnedo/alpine-curl:0.1.8
name : create-release-pr
volumes:
- name : github-app
path : /github-app
trigger:
event:
- promote
@ -2757,6 +2937,8 @@ volumes:
- host:
path : /var/run/docker.sock
name : docker
- name : github-app
temp : {}
---
clone:
retries : 3
@ -2806,6 +2988,21 @@ steps:
image : grafana/grafana-ci-deploy:1.3.3
name : publish-storybook
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
environment:
GITHUB_APP_ID:
from_secret : github-app-app-id
GITHUB_APP_INSTALLATION_ID:
from_secret : github-app-installation-id
GITHUB_APP_PRIVATE_KEY:
from_secret : github-app-private-key
image : us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
name : github-app-generate-token
volumes:
- name : github-app
path : /github-app
- commands:
- export GITHUB_TOKEN=$(cat /github-app/token)
- apk add perl
- v_target=`echo $${TAG} | perl -pe 's/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/v\1.\2.x/'`
- curl -L $${GH_CLI_URL} | tar -xz --strip-components=1 -C /usr
@ -2813,12 +3010,14 @@ steps:
-f latest=$${LATEST} --repo=grafana/grafana release-pr.yml
depends_on:
- publish-artifacts
- github-app-generate-token
environment:
GH_CLI_URL : https://github.com/cli/cli/releases/download/v2.50.0/gh_2.50.0_linux_amd64.tar.gz
GITHUB_TOKEN:
from_secret : github_token
image : byrnedo/alpine-curl:0.1.8
name : create-release-pr
volumes:
- name : github-app
path : /github-app
trigger:
event:
- promote
@ -3278,6 +3477,7 @@ services: []
steps:
- commands:
- export GRAFANA_DIR=$$(pwd)
- export GITHUB_TOKEN=$(cat /github-app/token)
- cd /src && ./scripts/drone_build_main.sh
environment:
_EXPERIMENTAL_DAGGER_CLOUD_TOKEN:
@ -3297,8 +3497,6 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GITHUB_TOKEN:
from_secret : github_token
GO_VERSION : 1.22 .7
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
@ -3317,6 +3515,8 @@ steps:
volumes:
- name : docker
path : /var/run/docker.sock
- name : github-app
path : /github-app
trigger:
branch : main
event:
@ -3352,6 +3552,7 @@ services: []
steps:
- commands:
- export GRAFANA_DIR=$$(pwd)
- export GITHUB_TOKEN=$(cat /github-app/token)
- cd /src && ./scripts/drone_build_tag_grafana.sh
environment:
_EXPERIMENTAL_DAGGER_CLOUD_TOKEN:
@ -3371,8 +3572,6 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GITHUB_TOKEN:
from_secret : github_token
GO_VERSION : 1.22 .7
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
@ -3391,6 +3590,8 @@ steps:
volumes:
- name : docker
path : /var/run/docker.sock
- name : github-app
path : /github-app
trigger:
event:
exclude:
@ -3513,6 +3714,7 @@ services: []
steps:
- commands:
- export GRAFANA_DIR=$$(pwd)
- export GITHUB_TOKEN=$(cat /github-app/token)
- cd /src && ./scripts/drone_build_tag_grafana.sh
environment:
_EXPERIMENTAL_DAGGER_CLOUD_TOKEN:
@ -3532,8 +3734,6 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GITHUB_TOKEN:
from_secret : github_token
GO_VERSION : 1.22 .7
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
@ -3552,6 +3752,8 @@ steps:
volumes:
- name : docker
path : /var/run/docker.sock
- name : github-app
path : /github-app
trigger:
ref:
- refs/heads/v[0-9]*
@ -3751,6 +3953,7 @@ services: []
steps:
- commands:
- export GRAFANA_DIR=$$(pwd)
- export GITHUB_TOKEN=$(cat /github-app/token)
- cd /src && ./scripts/drone_build_nightly_grafana.sh
environment:
_EXPERIMENTAL_DAGGER_CLOUD_TOKEN:
@ -3770,8 +3973,6 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GITHUB_TOKEN:
from_secret : github_token
GO_VERSION : 1.22 .7
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
@ -3790,6 +3991,8 @@ steps:
volumes:
- name : docker
path : /var/run/docker.sock
- name : github-app
path : /github-app
- commands:
- mkdir -p $${DESTINATION}/$${DRONE_BUILD_EVENT}
- printenv GCP_KEY_BASE64 | base64 -d > /tmp/key.json
@ -3814,8 +4017,6 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GITHUB_TOKEN:
from_secret : github_token
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
GPG_PRIVATE_KEY:
@ -3880,8 +4081,6 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GITHUB_TOKEN:
from_secret : github_token
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
GPG_PRIVATE_KEY:
@ -3896,6 +4095,7 @@ steps:
name : rgm-copy
- commands:
- export GRAFANA_DIR=$$(pwd)
- export GITHUB_TOKEN=$(cat /github-app/token)
- cd /src && ./scripts/drone_publish_nightly_grafana.sh
depends_on:
- rgm-copy
@ -3917,8 +4117,6 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GITHUB_TOKEN:
from_secret : github_token
GO_VERSION : 1.22 .7
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
@ -3937,6 +4135,8 @@ steps:
volumes:
- name : docker
path : /var/run/docker.sock
- name : github-app
path : /github-app
- depends_on:
- rgm-publish
image : us.gcr.io/kubernetes-dev/package-publish:latest
@ -4006,8 +4206,25 @@ platform:
services : [ ]
steps:
- commands:
- echo $(/usr/bin/github-app-external-token) > /github-app/token
environment:
GITHUB_APP_ID:
from_secret : github-app-app-id
GITHUB_APP_INSTALLATION_ID:
from_secret : github-app-installation-id
GITHUB_APP_PRIVATE_KEY:
from_secret : github-app-private-key
image : us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
name : github-app-generate-token
volumes:
- name : github-app
path : /github-app
- commands:
- 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} '
depends_on:
- github-app-generate-token
environment:
_EXPERIMENTAL_DAGGER_CLOUD_TOKEN:
from_secret : dagger_token
@ -4026,8 +4243,6 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GITHUB_TOKEN:
from_secret : github_token
GO_VERSION : 1.22 .7
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
@ -4046,6 +4261,8 @@ steps:
volumes:
- name : docker
path : /var/run/docker.sock
- name : github-app
path : /github-app
- commands:
- printenv GCP_KEY_BASE64 | base64 -d > /tmp/key.json
- gcloud auth activate-service-account --key-file=/tmp/key.json
@ -4067,8 +4284,6 @@ steps:
from_secret : grafana_api_key
GCP_KEY_BASE64:
from_secret : gcp_key_base64
GITHUB_TOKEN:
from_secret : github_token
GPG_PASSPHRASE:
from_secret : packages_gpg_passphrase
GPG_PRIVATE_KEY:
@ -4629,6 +4844,7 @@ steps:
- trivy --exit-code 0 --severity UNKNOWN,LOW,MEDIUM koalaman/shellcheck:stable
- trivy --exit-code 0 --severity UNKNOWN,LOW,MEDIUM rockylinux:9
- trivy --exit-code 0 --severity UNKNOWN,LOW,MEDIUM scottyhardy/docker-wine:stable-9.0
- trivy --exit-code 0 --severity UNKNOWN,LOW,MEDIUM us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
depends_on:
- authenticate-gcr
image : aquasec/trivy:0.21.0
@ -4666,6 +4882,7 @@ steps:
- trivy --exit-code 1 --severity HIGH,CRITICAL koalaman/shellcheck:stable
- trivy --exit-code 1 --severity HIGH,CRITICAL rockylinux:9
- trivy --exit-code 1 --severity HIGH,CRITICAL scottyhardy/docker-wine:stable-9.0
- trivy --exit-code 1 --severity HIGH,CRITICAL us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/github-app-secret-writer:2024-11-05-v11688112090.1-83920c59
depends_on:
- authenticate-gcr
environment:
@ -4698,6 +4915,24 @@ volumes:
- name : config
temp : {}
---
get:
name : app-id
path : ci/data/repo/grafana/grafana/github-app
kind : secret
name : github-app-app-id
---
get:
name : app-installation-id
path : ci/data/repo/grafana/grafana/github-app
kind : secret
name : github-app-installation-id
---
get:
name : private-key
path : ci/data/repo/grafana/grafana/github-app
kind : secret
name : github-app-private-key
---
get:
name : credentials.json
path : infra/data/ci/grafana-release-eng/grafanauploads
@ -4728,12 +4963,6 @@ get:
kind : secret
name : gar
---
get:
name : pat
path : ci/data/repo/grafana/grafana/grafanabot
kind : secret
name : github_token
---
get:
name : machine-user-token
path : infra/data/ci/drone
@ -4897,6 +5126,6 @@ kind: secret
name : gcr_credentials
---
kind : signature
hmac : 046471b0eef4e59d1a6c78850e497a67ae3cfabea2b82c148084a84e43496ce7
hmac : d5afbd3e3107644d41932a47ef3722072b03617f16c2d41550faacf50107fe1a
...