Commit c5bdea5c by Arve Knudsen Committed by GitHub

Chore: Upgrade build pipeline tool; refactor Drone config (#26292)

* Upgrade grabpl; refactor Drone config
parent 9b6b0cad
...@@ -45,7 +45,7 @@ commands: ...@@ -45,7 +45,7 @@ commands:
- run: - run:
name: "Install Grafana build pipeline tool" name: "Install Grafana build pipeline tool"
command: | command: |
VERSION=0.4.21 VERSION=0.4.24
curl -fLO https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v${VERSION}/grabpl curl -fLO https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v${VERSION}/grabpl
chmod +x grabpl chmod +x grabpl
mv grabpl /tmp mv grabpl /tmp
......
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: test-pr-oss name: test-pr
platform: platform:
os: linux os: linux
arch: amd64 arch: amd64
steps: steps:
- name: install-deps - name: initialize
image: grafana/build-container:1.2.21 image: grafana/build-container:1.2.21
commands: commands:
- curl -fLO https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v$${GRABPL_VERSION}/grabpl - curl -fLO https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v$${GRABPL_VERSION}/grabpl
...@@ -22,16 +22,16 @@ steps: ...@@ -22,16 +22,16 @@ steps:
- cp -r $(yarn cache dir) yarn-cache - cp -r $(yarn cache dir) yarn-cache
environment: environment:
DOCKERIZE_VERSION: 0.6.1 DOCKERIZE_VERSION: 0.6.1
GRABPL_VERSION: 0.4.15 GRABPL_VERSION: 0.4.24
- name: lint-go - name: lint-backend
image: grafana/build-container:1.2.21 image: grafana/build-container:1.2.21
commands: commands:
- make lint-go - make lint-go
environment: environment:
CGO_ENABLED: 1 CGO_ENABLED: 1
depends_on: depends_on:
- install-deps - initialize
- name: codespell - name: codespell
image: grafana/build-container:1.2.21 image: grafana/build-container:1.2.21
...@@ -39,7 +39,7 @@ steps: ...@@ -39,7 +39,7 @@ steps:
- "echo -e \"unknwon\nreferer\nerrorstring\neror\niam\" > words_to_ignore.txt" - "echo -e \"unknwon\nreferer\nerrorstring\neror\niam\" > words_to_ignore.txt"
- codespell -I words_to_ignore.txt docs/ - codespell -I words_to_ignore.txt docs/
depends_on: depends_on:
- install-deps - initialize
- name: shellcheck - name: shellcheck
image: grafana/build-container:1.2.21 image: grafana/build-container:1.2.21
...@@ -54,31 +54,29 @@ steps: ...@@ -54,31 +54,29 @@ steps:
CHKSUM: beca3d7819a6bdcfbd044576df4fc284053b48f468b2f03428fe66f4ceb2c05d9b5411357fa15003cb0311406c255084cf7283a3b8fce644c340c2f6aa910b9f CHKSUM: beca3d7819a6bdcfbd044576df4fc284053b48f468b2f03428fe66f4ceb2c05d9b5411357fa15003cb0311406c255084cf7283a3b8fce644c340c2f6aa910b9f
VERSION: 0.7.1 VERSION: 0.7.1
depends_on: depends_on:
- install-deps - initialize
- name: build-backend - name: build-backend
image: grafana/build-container:1.2.21 image: grafana/build-container:1.2.21
commands: commands:
- rm -rf $(go env GOCACHE) && cp -r go-cache $(go env GOCACHE) - rm -rf $(go env GOCACHE) && cp -r go-cache $(go env GOCACHE)
- ./bin/grabpl build-backend --github-token "$${GITHUB_TOKEN}" --edition oss --build-id $DRONE_BUILD_NUMBER --variants linux-x64,linux-x64-musl,osx64,win64 - ./bin/grabpl build-backend --edition $${GF_EDITION} --build-id $DRONE_BUILD_NUMBER --variants linux-x64,linux-x64-musl,osx64,win64 --no-pull-enterprise
environment: environment:
GITHUB_TOKEN: GF_EDITION: oss
from_secret: github_token
depends_on: depends_on:
- install-deps - initialize
- lint-go - lint-backend
- test-backend - test-backend
- name: build-frontend - name: build-frontend
image: grafana/build-container:1.2.21 image: grafana/build-container:1.2.21
commands: commands:
- rm -rf $(yarn cache dir) && cp -r yarn-cache $(yarn cache dir) - rm -rf $(yarn cache dir) && cp -r yarn-cache $(yarn cache dir)
- ./bin/grabpl build-frontend --no-install-deps --github-token "$${GITHUB_TOKEN}" --edition oss --build-id $DRONE_BUILD_NUMBER - ./bin/grabpl build-frontend --no-install-deps --edition $${GF_EDITION} --build-id $DRONE_BUILD_NUMBER --no-pull-enterprise
environment: environment:
GITHUB_TOKEN: GF_EDITION: oss
from_secret: github_token
depends_on: depends_on:
- install-deps - initialize
- test-frontend - test-frontend
- name: test-backend - name: test-backend
...@@ -88,8 +86,8 @@ steps: ...@@ -88,8 +86,8 @@ steps:
- ./bin/grabpl integration-tests - ./bin/grabpl integration-tests
- cp -r $(go env GOCACHE) go-cache - cp -r $(go env GOCACHE) go-cache
depends_on: depends_on:
- install-deps - initialize
- lint-go - lint-backend
- name: test-frontend - name: test-frontend
image: grafana/build-container:1.2.21 image: grafana/build-container:1.2.21
...@@ -100,24 +98,25 @@ steps: ...@@ -100,24 +98,25 @@ steps:
- yarn run typecheck - yarn run typecheck
- yarn run test - yarn run test
depends_on: depends_on:
- install-deps - initialize
- name: build-plugins - name: build-plugins
image: grafana/build-container:1.2.21 image: grafana/build-container:1.2.21
commands: commands:
- rm -rf $(yarn cache dir) && cp -r yarn-cache $(yarn cache dir) - rm -rf $(yarn cache dir) && cp -r yarn-cache $(yarn cache dir)
- ./bin/grabpl build-plugins --edition oss --no-install-deps - ./bin/grabpl build-plugins --edition $${GF_EDITION} --no-install-deps
environment:
GF_EDITION: oss
depends_on: depends_on:
- install-deps - initialize
- lint-go - lint-backend
- name: package - name: package
image: grafana/build-container:1.2.21 image: grafana/build-container:1.2.21
commands: commands:
- . scripts/build/gpg-test-vars.sh && ./bin/grabpl package --github-token "$${GITHUB_TOKEN}" --edition oss --build-id $DRONE_BUILD_NUMBER --variants linux-x64,linux-x64-musl,osx64,win64 - . scripts/build/gpg-test-vars.sh && ./bin/grabpl package --edition $${GF_EDITION} --build-id $DRONE_BUILD_NUMBER --variants linux-x64,linux-x64-musl,osx64,win64 --no-pull-enterprise
environment: environment:
GITHUB_TOKEN: GF_EDITION: oss
from_secret: github_token
depends_on: depends_on:
- build-backend - build-backend
- build-frontend - build-frontend
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment