mirror of
https://github.com/grafana/grafana.git
synced 2024-12-24 16:10:22 -06:00
Make publish packages depend on compile-build-cmd and run from bin/build (#56713)
This commit is contained in:
parent
c8402b4b50
commit
e25475b9c8
15
.drone.yml
15
.drone.yml
@ -1800,10 +1800,10 @@ steps:
|
||||
image: alpine:3.15.6
|
||||
name: identify-runner
|
||||
- commands:
|
||||
- ./bin/grabpl publish packages --edition oss --gcp-key /tmp/gcpkey.json --build-id
|
||||
- ./bin/build publish packages --edition oss --gcp-key /tmp/gcpkey.json --build-id
|
||||
${DRONE_BUILD_NUMBER}
|
||||
depends_on:
|
||||
- grabpl
|
||||
- compile-build-cmd
|
||||
environment:
|
||||
GCP_KEY:
|
||||
from_secret: gcp_key
|
||||
@ -3798,9 +3798,9 @@ steps:
|
||||
image: golang:1.19.2
|
||||
name: compile-build-cmd
|
||||
- commands:
|
||||
- ./bin/grabpl publish packages --edition oss --gcp-key /tmp/gcpkey.json ${DRONE_TAG}
|
||||
- ./bin/build publish packages --edition oss --gcp-key /tmp/gcpkey.json ${DRONE_TAG}
|
||||
depends_on:
|
||||
- grabpl
|
||||
- compile-build-cmd
|
||||
environment:
|
||||
GCP_KEY:
|
||||
from_secret: gcp_key
|
||||
@ -3887,10 +3887,9 @@ steps:
|
||||
image: golang:1.19.2
|
||||
name: compile-build-cmd
|
||||
- commands:
|
||||
- ./bin/grabpl publish packages --edition enterprise --gcp-key /tmp/gcpkey.json
|
||||
${DRONE_TAG}
|
||||
- ./bin/build publish packages --edition enterprise --gcp-key /tmp/gcpkey.json ${DRONE_TAG}
|
||||
depends_on:
|
||||
- grabpl
|
||||
- compile-build-cmd
|
||||
environment:
|
||||
GCP_KEY:
|
||||
from_secret: gcp_key
|
||||
@ -5603,6 +5602,6 @@ kind: secret
|
||||
name: packages_secret_access_key
|
||||
---
|
||||
kind: signature
|
||||
hmac: 50cfbb352e0423eab71db5ee255de891f5ce510de765ba4add2aa69267ddd65f
|
||||
hmac: ead459950183bdae94b7e670d6bb883f3ff01775294324c43813fde99553f57d
|
||||
|
||||
...
|
||||
|
@ -988,12 +988,12 @@ def upload_packages_step(edition, ver_mode, trigger=None):
|
||||
|
||||
def publish_packages_step(edition, ver_mode):
|
||||
if ver_mode == 'release':
|
||||
cmd = './bin/grabpl publish packages --edition {} --gcp-key /tmp/gcpkey.json ${{DRONE_TAG}}'.format(
|
||||
cmd = './bin/build publish packages --edition {} --gcp-key /tmp/gcpkey.json ${{DRONE_TAG}}'.format(
|
||||
edition,
|
||||
)
|
||||
elif ver_mode == 'main':
|
||||
build_no = '${DRONE_BUILD_NUMBER}'
|
||||
cmd = './bin/grabpl publish packages --edition {} --gcp-key /tmp/gcpkey.json --build-id {}'.format(
|
||||
cmd = './bin/build publish packages --edition {} --gcp-key /tmp/gcpkey.json --build-id {}'.format(
|
||||
edition, build_no,
|
||||
)
|
||||
else:
|
||||
@ -1003,7 +1003,7 @@ def publish_packages_step(edition, ver_mode):
|
||||
'name': 'publish-packages-{}'.format(edition),
|
||||
'image': publish_image,
|
||||
'depends_on': [
|
||||
'grabpl',
|
||||
'compile-build-cmd',
|
||||
],
|
||||
'environment': {
|
||||
'GRAFANA_COM_API_KEY': from_secret('grafana_api_key'),
|
||||
|
Loading…
Reference in New Issue
Block a user