CI: Remove custom enterprise2 pipelines (#68056)
Remove custom enterprise2 pipelines
(cherry picked from commit 6ae952c7c5)
This commit is contained in:
@@ -42,10 +42,6 @@ def main(_ctx):
|
|||||||
oss_pipelines() +
|
oss_pipelines() +
|
||||||
enterprise_pipelines() +
|
enterprise_pipelines() +
|
||||||
enterprise2_pipelines() +
|
enterprise2_pipelines() +
|
||||||
enterprise2_pipelines(
|
|
||||||
prefix = "custom-",
|
|
||||||
trigger = {"event": ["custom"]},
|
|
||||||
) +
|
|
||||||
publish_image_pipelines_public() +
|
publish_image_pipelines_public() +
|
||||||
publish_image_pipelines_security() +
|
publish_image_pipelines_security() +
|
||||||
publish_github_pipeline("public") +
|
publish_github_pipeline("public") +
|
||||||
|
|||||||
+1
-249
@@ -3598,254 +3598,6 @@ volumes:
|
|||||||
temp:
|
temp:
|
||||||
medium: memory
|
medium: memory
|
||||||
---
|
---
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
depends_on: []
|
|
||||||
environment:
|
|
||||||
EDITION: enterprise2
|
|
||||||
image_pull_secrets:
|
|
||||||
- dockerconfigjson
|
|
||||||
kind: pipeline
|
|
||||||
name: custom-release-enterprise2-build-e2e-publish
|
|
||||||
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.30/grabpl
|
|
||||||
- chmod +x bin/grabpl
|
|
||||||
image: byrnedo/alpine-curl:0.1.8
|
|
||||||
name: grabpl
|
|
||||||
- commands:
|
|
||||||
- echo $DRONE_RUNNER_NAME
|
|
||||||
image: alpine:3.17.1
|
|
||||||
name: identify-runner
|
|
||||||
- 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:
|
|
||||||
- make gen-go
|
|
||||||
depends_on:
|
|
||||||
- init-enterprise
|
|
||||||
image: grafana/build-container:1.7.4
|
|
||||||
name: wire-install
|
|
||||||
- commands:
|
|
||||||
- yarn install --immutable
|
|
||||||
depends_on:
|
|
||||||
- init-enterprise
|
|
||||||
image: grafana/build-container:1.7.4
|
|
||||||
name: yarn-install
|
|
||||||
- commands:
|
|
||||||
- '# It is required that code generated from Thema/CUE be committed and in sync
|
|
||||||
with its inputs.'
|
|
||||||
- '# The following command will fail if running code generators produces any diff
|
|
||||||
in output.'
|
|
||||||
- CODEGEN_VERIFY=1 make gen-cue
|
|
||||||
depends_on:
|
|
||||||
- init-enterprise
|
|
||||||
image: grafana/build-container:1.7.4
|
|
||||||
name: verify-gen-cue
|
|
||||||
- commands:
|
|
||||||
- ./bin/build build-frontend --jobs 8 --edition enterprise ${DRONE_TAG}
|
|
||||||
depends_on:
|
|
||||||
- compile-build-cmd
|
|
||||||
- yarn-install
|
|
||||||
environment:
|
|
||||||
NODE_OPTIONS: --max_old_space_size=8192
|
|
||||||
image: grafana/build-container:1.7.4
|
|
||||||
name: build-frontend
|
|
||||||
- commands:
|
|
||||||
- ./bin/build build-frontend-packages --jobs 8 --edition enterprise ${DRONE_TAG}
|
|
||||||
depends_on:
|
|
||||||
- compile-build-cmd
|
|
||||||
- yarn-install
|
|
||||||
environment:
|
|
||||||
NODE_OPTIONS: --max_old_space_size=8192
|
|
||||||
image: grafana/build-container:1.7.4
|
|
||||||
name: build-frontend-packages
|
|
||||||
- commands:
|
|
||||||
- ./bin/build build-plugins --jobs 8 --edition enterprise
|
|
||||||
depends_on:
|
|
||||||
- compile-build-cmd
|
|
||||||
- yarn-install
|
|
||||||
environment:
|
|
||||||
GRAFANA_API_KEY:
|
|
||||||
from_secret: grafana_api_key
|
|
||||||
image: grafana/build-container:1.7.4
|
|
||||||
name: build-plugins
|
|
||||||
- commands:
|
|
||||||
- ./bin/build build-backend --jobs 8 --edition enterprise2 ${DRONE_TAG}
|
|
||||||
depends_on:
|
|
||||||
- wire-install
|
|
||||||
- compile-build-cmd
|
|
||||||
image: grafana/build-container:1.7.4
|
|
||||||
name: build-backend-enterprise2
|
|
||||||
- commands:
|
|
||||||
- ./bin/build package --jobs 8 --edition enterprise2 --sign ${DRONE_TAG}
|
|
||||||
depends_on:
|
|
||||||
- build-plugins
|
|
||||||
- build-backend-enterprise2
|
|
||||||
- build-frontend
|
|
||||||
- build-frontend-packages
|
|
||||||
environment:
|
|
||||||
GPG_KEY_PASSWORD:
|
|
||||||
from_secret: packages_gpg_passphrase
|
|
||||||
GPG_PRIV_KEY:
|
|
||||||
from_secret: packages_gpg_private_key
|
|
||||||
GPG_PUB_KEY:
|
|
||||||
from_secret: packages_gpg_public_key
|
|
||||||
GRAFANA_API_KEY:
|
|
||||||
from_secret: grafana_api_key
|
|
||||||
image: grafana/build-container:1.7.4
|
|
||||||
name: package-enterprise2
|
|
||||||
- commands:
|
|
||||||
- ./bin/build upload-cdn --edition enterprise2
|
|
||||||
depends_on:
|
|
||||||
- package-enterprise2
|
|
||||||
environment:
|
|
||||||
ENTERPRISE2_CDN_PATH:
|
|
||||||
from_secret: enterprise2-cdn-path
|
|
||||||
GCP_KEY:
|
|
||||||
from_secret: gcp_key
|
|
||||||
PRERELEASE_BUCKET:
|
|
||||||
from_secret: prerelease_bucket
|
|
||||||
image: grafana/grafana-ci-deploy:1.3.3
|
|
||||||
name: upload-cdn-assets-enterprise2
|
|
||||||
- commands:
|
|
||||||
- ls dist/*.tar.gz*
|
|
||||||
- cp dist/*.tar.gz* packaging/docker/
|
|
||||||
depends_on:
|
|
||||||
- package-enterprise2
|
|
||||||
image: grafana/build-container:1.7.4
|
|
||||||
name: copy-packages-for-docker
|
|
||||||
- commands:
|
|
||||||
- ./bin/build build-docker --edition enterprise2 --shouldSave
|
|
||||||
depends_on:
|
|
||||||
- copy-packages-for-docker
|
|
||||||
- compile-build-cmd
|
|
||||||
environment:
|
|
||||||
DOCKER_ENTERPRISE2_REPO:
|
|
||||||
from_secret: docker_enterprise2_repo
|
|
||||||
GCP_KEY:
|
|
||||||
from_secret: gcp_key
|
|
||||||
image: google/cloud-sdk
|
|
||||||
name: build-docker-images
|
|
||||||
volumes:
|
|
||||||
- name: docker
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
- commands:
|
|
||||||
- ./bin/build build-docker --edition enterprise2 --shouldSave --ubuntu
|
|
||||||
depends_on:
|
|
||||||
- copy-packages-for-docker
|
|
||||||
- compile-build-cmd
|
|
||||||
environment:
|
|
||||||
DOCKER_ENTERPRISE2_REPO:
|
|
||||||
from_secret: docker_enterprise2_repo
|
|
||||||
GCP_KEY:
|
|
||||||
from_secret: gcp_key
|
|
||||||
image: google/cloud-sdk
|
|
||||||
name: build-docker-images-ubuntu
|
|
||||||
volumes:
|
|
||||||
- name: docker
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
- commands:
|
|
||||||
- ./bin/build artifacts docker fetch --edition enterprise2
|
|
||||||
depends_on:
|
|
||||||
- build-docker-images
|
|
||||||
- build-docker-images-ubuntu
|
|
||||||
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
|
|
||||||
name: fetch-images-enterprise2
|
|
||||||
volumes:
|
|
||||||
- name: docker
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
- commands:
|
|
||||||
- ./bin/build artifacts docker publish-enterprise2 --dockerhub-repo $${DOCKER_ENTERPRISE2_REPO}
|
|
||||||
depends_on:
|
|
||||||
- fetch-images-enterprise2
|
|
||||||
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_hg
|
|
||||||
image: google/cloud-sdk
|
|
||||||
name: publish-images-enterprise2
|
|
||||||
volumes:
|
|
||||||
- name: docker
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
- commands:
|
|
||||||
- ./bin/build upload-packages --edition enterprise2
|
|
||||||
depends_on:
|
|
||||||
- package-enterprise2
|
|
||||||
environment:
|
|
||||||
GCP_KEY:
|
|
||||||
from_secret: gcp_key
|
|
||||||
PRERELEASE_BUCKET:
|
|
||||||
from_secret: prerelease_bucket
|
|
||||||
image: grafana/grafana-ci-deploy:1.3.3
|
|
||||||
name: upload-packages-enterprise2
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- custom
|
|
||||||
type: docker
|
|
||||||
volumes:
|
|
||||||
- host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
name: docker
|
|
||||||
- name: postgres
|
|
||||||
temp:
|
|
||||||
medium: memory
|
|
||||||
- name: mysql
|
|
||||||
temp:
|
|
||||||
medium: memory
|
|
||||||
---
|
|
||||||
clone:
|
clone:
|
||||||
retries: 3
|
retries: 3
|
||||||
depends_on: []
|
depends_on: []
|
||||||
@@ -7025,6 +6777,6 @@ kind: secret
|
|||||||
name: enterprise2_security_prefix
|
name: enterprise2_security_prefix
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 62c8ed89a27cd7fc53d63a74275aa09658da1a37b97a100c73cc077021299461
|
hmac: 03feefe04ee83fbb8ae40154ceeef7f798adc20b87aac5fb37b07109f6bf02d7
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user