Add gen-version for main-publish pipeline (#51890)

This commit is contained in:
Dimitris Sotirakis 2022-07-07 14:58:20 +03:00 committed by GitHub
parent b12998df16
commit 88943590b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -1489,6 +1489,12 @@ steps:
- chmod +x bin/grabpl
image: byrnedo/alpine-curl:0.1.8
name: grabpl
- commands:
- ./bin/grabpl gen-version --build-id ${DRONE_BUILD_NUMBER}
depends_on:
- grabpl
image: grafana/build-container:1.5.7
name: gen-version
- commands:
- echo $DRONE_RUNNER_NAME
image: alpine:3.15
@ -4793,6 +4799,6 @@ kind: secret
name: gcp_upload_artifacts_key
---
kind: signature
hmac: ec563f30c3aa398768ee9399bc2f6f50533da9b53c19d1c8b10a96277a42070c
hmac: b885bb4e5374691a66b4fa8c6f53cdcebeef573895ea629d4e8b0af715573cea
...

View File

@ -233,7 +233,7 @@ def main_pipelines(edition):
template=drone_change_template, secret='drone-changes-webhook',
), pipeline(
name='main-publish', edition=edition, trigger=dict(trigger, repo=['grafana/grafana']),
steps=[download_grabpl_step(), identify_runner_step(),] + store_steps,
steps=[download_grabpl_step(), gen_version_step(ver_mode), identify_runner_step(),] + store_steps,
depends_on=['main-test-frontend', 'main-test-backend', 'main-build-e2e-publish', 'main-integration-tests', 'main-windows', ],
), notify_pipeline(
name='main-notify', slack_channel='grafana-ci-notifications', trigger=dict(trigger, status=['failure']),