|
|
|
|
@ -3888,91 +3888,6 @@ volumes: |
|
|
|
|
clone: |
|
|
|
|
retries: 3 |
|
|
|
|
depends_on: [] |
|
|
|
|
environment: |
|
|
|
|
EDITION: enterprise |
|
|
|
|
image_pull_secrets: |
|
|
|
|
- dockerconfigjson |
|
|
|
|
kind: pipeline |
|
|
|
|
name: publish-docker-enterprise-security |
|
|
|
|
node: |
|
|
|
|
type: no-parallel |
|
|
|
|
platform: |
|
|
|
|
arch: amd64 |
|
|
|
|
os: linux |
|
|
|
|
services: [] |
|
|
|
|
steps: |
|
|
|
|
- commands: |
|
|
|
|
- echo $DRONE_RUNNER_NAME |
|
|
|
|
image: alpine:3.17.1 |
|
|
|
|
name: identify-runner |
|
|
|
|
- commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v3.0.39/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
image: byrnedo/alpine-curl:0.1.8 |
|
|
|
|
name: grabpl |
|
|
|
|
- commands: |
|
|
|
|
- go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd |
|
|
|
|
depends_on: [] |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 0 |
|
|
|
|
image: golang:1.20.4 |
|
|
|
|
name: compile-build-cmd |
|
|
|
|
- commands: |
|
|
|
|
- ./bin/build artifacts docker fetch --edition enterprise |
|
|
|
|
depends_on: |
|
|
|
|
- compile-build-cmd |
|
|
|
|
environment: |
|
|
|
|
DOCKER_ENTERPRISE2_REPO: |
|
|
|
|
from_secret: docker_enterprise2_repo |
|
|
|
|
DOCKER_PASSWORD: |
|
|
|
|
from_secret: docker_password |
|
|
|
|
DOCKER_USER: |
|
|
|
|
from_secret: docker_username |
|
|
|
|
GCP_KEY: |
|
|
|
|
from_secret: gcp_key |
|
|
|
|
image: google/cloud-sdk:431.0.0 |
|
|
|
|
name: fetch-images-enterprise |
|
|
|
|
volumes: |
|
|
|
|
- name: docker |
|
|
|
|
path: /var/run/docker.sock |
|
|
|
|
- commands: |
|
|
|
|
- ./bin/grabpl artifacts docker publish --security --dockerhub-repo grafana/grafana-enterprise |
|
|
|
|
--version-tag ${DRONE_TAG} |
|
|
|
|
depends_on: |
|
|
|
|
- fetch-images-enterprise |
|
|
|
|
environment: |
|
|
|
|
DOCKER_PASSWORD: |
|
|
|
|
from_secret: docker_password |
|
|
|
|
DOCKER_USER: |
|
|
|
|
from_secret: docker_username |
|
|
|
|
GCP_KEY: |
|
|
|
|
from_secret: gcp_key |
|
|
|
|
GITHUB_APP_ID: |
|
|
|
|
from_secret: delivery-bot-app-id |
|
|
|
|
GITHUB_APP_INSTALLATION_ID: |
|
|
|
|
from_secret: delivery-bot-app-installation-id |
|
|
|
|
GITHUB_APP_PRIVATE_KEY: |
|
|
|
|
from_secret: delivery-bot-app-private-key |
|
|
|
|
image: google/cloud-sdk:431.0.0 |
|
|
|
|
name: publish-images-grafana-enterprise |
|
|
|
|
volumes: |
|
|
|
|
- name: docker |
|
|
|
|
path: /var/run/docker.sock |
|
|
|
|
trigger: |
|
|
|
|
event: |
|
|
|
|
- promote |
|
|
|
|
target: |
|
|
|
|
- security |
|
|
|
|
type: docker |
|
|
|
|
volumes: |
|
|
|
|
- host: |
|
|
|
|
path: /var/run/docker.sock |
|
|
|
|
name: docker |
|
|
|
|
--- |
|
|
|
|
clone: |
|
|
|
|
retries: 3 |
|
|
|
|
depends_on: [] |
|
|
|
|
environment: |
|
|
|
|
EDITION: enterprise2 |
|
|
|
|
image_pull_secrets: |
|
|
|
|
@ -4172,18 +4087,14 @@ steps: |
|
|
|
|
image: golang:1.20.4 |
|
|
|
|
name: compile-build-cmd |
|
|
|
|
- commands: |
|
|
|
|
- ./bin/build artifacts packages --security --tag $${DRONE_TAG} --src-bucket $${PRERELEASE_BUCKET} |
|
|
|
|
- ./bin/build artifacts packages --tag $${{DRONE_TAG}} --src-bucket $${{PRERELEASE_BUCKET}} |
|
|
|
|
depends_on: |
|
|
|
|
- compile-build-cmd |
|
|
|
|
environment: |
|
|
|
|
ENTERPRISE2_SECURITY_PREFIX: |
|
|
|
|
from_secret: enterprise2_security_prefix |
|
|
|
|
GCP_KEY: |
|
|
|
|
from_secret: gcp_key |
|
|
|
|
PRERELEASE_BUCKET: |
|
|
|
|
from_secret: prerelease_bucket |
|
|
|
|
SECURITY_DEST_BUCKET: |
|
|
|
|
from_secret: security_dest_bucket |
|
|
|
|
image: grafana/grafana-ci-deploy:1.3.3 |
|
|
|
|
name: publish-artifacts |
|
|
|
|
- commands: |
|
|
|
|
@ -4199,6 +4110,17 @@ steps: |
|
|
|
|
from_secret: static_asset_editions |
|
|
|
|
image: grafana/grafana-ci-deploy:1.3.3 |
|
|
|
|
name: publish-static-assets |
|
|
|
|
- commands: |
|
|
|
|
- ./bin/build artifacts storybook --tag ${DRONE_TAG} |
|
|
|
|
depends_on: |
|
|
|
|
- compile-build-cmd |
|
|
|
|
environment: |
|
|
|
|
GCP_KEY: |
|
|
|
|
from_secret: gcp_key |
|
|
|
|
PRERELEASE_BUCKET: |
|
|
|
|
from_secret: prerelease_bucket |
|
|
|
|
image: grafana/grafana-ci-deploy:1.3.3 |
|
|
|
|
name: publish-storybook |
|
|
|
|
trigger: |
|
|
|
|
event: |
|
|
|
|
- promote |
|
|
|
|
@ -4234,18 +4156,14 @@ steps: |
|
|
|
|
image: golang:1.20.4 |
|
|
|
|
name: compile-build-cmd |
|
|
|
|
- commands: |
|
|
|
|
- ./bin/build artifacts packages --tag $${DRONE_TAG} --src-bucket $${PRERELEASE_BUCKET} |
|
|
|
|
- ./bin/build artifacts packages --tag $${{DRONE_TAG}} --src-bucket $${{PRERELEASE_BUCKET}} |
|
|
|
|
depends_on: |
|
|
|
|
- compile-build-cmd |
|
|
|
|
environment: |
|
|
|
|
ENTERPRISE2_SECURITY_PREFIX: |
|
|
|
|
from_secret: enterprise2_security_prefix |
|
|
|
|
GCP_KEY: |
|
|
|
|
from_secret: gcp_key |
|
|
|
|
PRERELEASE_BUCKET: |
|
|
|
|
from_secret: prerelease_bucket |
|
|
|
|
SECURITY_DEST_BUCKET: |
|
|
|
|
from_secret: security_dest_bucket |
|
|
|
|
image: grafana/grafana-ci-deploy:1.3.3 |
|
|
|
|
name: publish-artifacts |
|
|
|
|
- commands: |
|
|
|
|
@ -4780,81 +4698,6 @@ volumes: |
|
|
|
|
path: //./pipe/docker_engine/ |
|
|
|
|
name: docker |
|
|
|
|
--- |
|
|
|
|
clone: |
|
|
|
|
disable: true |
|
|
|
|
depends_on: [] |
|
|
|
|
environment: |
|
|
|
|
EDITION: enterprise |
|
|
|
|
image_pull_secrets: |
|
|
|
|
- dockerconfigjson |
|
|
|
|
kind: pipeline |
|
|
|
|
name: publish-artifacts-page |
|
|
|
|
node: |
|
|
|
|
type: no-parallel |
|
|
|
|
platform: |
|
|
|
|
arch: amd64 |
|
|
|
|
os: linux |
|
|
|
|
services: [] |
|
|
|
|
steps: |
|
|
|
|
- commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v3.0.39/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
image: byrnedo/alpine-curl:0.1.8 |
|
|
|
|
name: grabpl |
|
|
|
|
- commands: |
|
|
|
|
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" |
|
|
|
|
- cd grafana-enterprise |
|
|
|
|
- git checkout ${DRONE_TAG} |
|
|
|
|
environment: |
|
|
|
|
GITHUB_TOKEN: |
|
|
|
|
from_secret: github_token |
|
|
|
|
image: grafana/build-container:1.7.4 |
|
|
|
|
name: clone-enterprise |
|
|
|
|
- commands: |
|
|
|
|
- mv bin/grabpl /tmp/ |
|
|
|
|
- rmdir bin |
|
|
|
|
- mv grafana-enterprise /tmp/ |
|
|
|
|
- /tmp/grabpl init-enterprise --github-token $${GITHUB_TOKEN} /tmp/grafana-enterprise |
|
|
|
|
${DRONE_TAG} |
|
|
|
|
- mv /tmp/grafana-enterprise/deployment_tools_config.json deployment_tools_config.json |
|
|
|
|
- mkdir bin |
|
|
|
|
- mv /tmp/grabpl bin/ |
|
|
|
|
depends_on: |
|
|
|
|
- clone-enterprise |
|
|
|
|
- grabpl |
|
|
|
|
environment: |
|
|
|
|
GITHUB_TOKEN: |
|
|
|
|
from_secret: github_token |
|
|
|
|
image: grafana/build-container:1.7.4 |
|
|
|
|
name: init-enterprise |
|
|
|
|
- commands: |
|
|
|
|
- go build -o ./bin/build -ldflags '-extldflags -static' ./pkg/build/cmd |
|
|
|
|
depends_on: |
|
|
|
|
- init-enterprise |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 0 |
|
|
|
|
image: golang:1.20.4 |
|
|
|
|
name: compile-build-cmd |
|
|
|
|
- commands: |
|
|
|
|
- ./bin/build artifacts-page |
|
|
|
|
depends_on: |
|
|
|
|
- compile-build-cmd |
|
|
|
|
environment: |
|
|
|
|
GCP_KEY: |
|
|
|
|
from_secret: gcp_key |
|
|
|
|
image: grafana/build-container:1.7.4 |
|
|
|
|
name: artifacts-page |
|
|
|
|
trigger: |
|
|
|
|
event: |
|
|
|
|
- promote |
|
|
|
|
target: security |
|
|
|
|
type: docker |
|
|
|
|
volumes: |
|
|
|
|
- host: |
|
|
|
|
path: /var/run/docker.sock |
|
|
|
|
name: docker |
|
|
|
|
--- |
|
|
|
|
clone: |
|
|
|
|
retries: 3 |
|
|
|
|
depends_on: [] |
|
|
|
|
@ -7291,36 +7134,18 @@ get: |
|
|
|
|
kind: secret |
|
|
|
|
name: aws_secret_access_key |
|
|
|
|
--- |
|
|
|
|
get: |
|
|
|
|
name: bucket |
|
|
|
|
path: infra/data/ci/grafana-release-eng/security-bucket |
|
|
|
|
kind: secret |
|
|
|
|
name: security_dest_bucket |
|
|
|
|
--- |
|
|
|
|
get: |
|
|
|
|
name: static_asset_editions |
|
|
|
|
path: infra/data/ci/grafana-release-eng/artifact-publishing |
|
|
|
|
kind: secret |
|
|
|
|
name: static_asset_editions |
|
|
|
|
--- |
|
|
|
|
get: |
|
|
|
|
name: security_prefix |
|
|
|
|
path: infra/data/ci/grafana-release-eng/enterprise2 |
|
|
|
|
kind: secret |
|
|
|
|
name: enterprise2_security_prefix |
|
|
|
|
--- |
|
|
|
|
get: |
|
|
|
|
name: cdn_path |
|
|
|
|
path: infra/data/ci/grafana-release-eng/enterprise2 |
|
|
|
|
kind: secret |
|
|
|
|
name: enterprise2-cdn-path |
|
|
|
|
--- |
|
|
|
|
get: |
|
|
|
|
name: security_prefix |
|
|
|
|
path: infra/data/ci/grafana-release-eng/enterprise2 |
|
|
|
|
kind: secret |
|
|
|
|
name: enterprise2_security_prefix |
|
|
|
|
--- |
|
|
|
|
get: |
|
|
|
|
name: gcp_service_account_base64 |
|
|
|
|
path: infra/data/ci/grafana-release-eng/rgm |
|
|
|
|
@ -7364,6 +7189,6 @@ kind: secret |
|
|
|
|
name: delivery-bot-app-private-key |
|
|
|
|
--- |
|
|
|
|
kind: signature |
|
|
|
|
hmac: 2cfe53f430c7cfec1b422a329b009b7c81cd52e897abb7a940115e524796178a |
|
|
|
|
hmac: 5b576f21a7afb08759ad4ac7b74a54afcfbf9b5eac0e5894857ce4cdd0feed50 |
|
|
|
|
|
|
|
|
|
... |
|
|
|
|
|