From e25475b9c898ac99a2f015afc113828430556750 Mon Sep 17 00:00:00 2001 From: Dimitris Sotirakis Date: Mon, 17 Oct 2022 10:58:36 +0300 Subject: [PATCH] Make publish packages depend on compile-build-cmd and run from bin/build (#56713) --- .drone.yml | 15 +++++++-------- scripts/drone/steps/lib.star | 6 +++--- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 76f5428cd1f..c75b8a30fc0 100644 --- a/.drone.yml +++ b/.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 ... diff --git a/scripts/drone/steps/lib.star b/scripts/drone/steps/lib.star index 90712273bfd..82ced648783 100644 --- a/scripts/drone/steps/lib.star +++ b/scripts/drone/steps/lib.star @@ -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'),