Commit 7ee8f91e by Arve Knudsen Committed by GitHub

Drone: Use DRONE_COMMIT_REF to get release tag (#28283)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent a49c72ae
......@@ -29,6 +29,7 @@ load(
'publish_packages_step',
'notify_pipeline',
'integration_test_services',
'drone_tag_cmd',
)
def release_npm_packages_step(edition, ver_mode):
......@@ -40,7 +41,7 @@ def release_npm_packages_step(edition, ver_mode):
'echo "//registry.npmjs.org/:_authToken=$${NPM_TOKEN}" >> ~/.npmrc',
]
if ver_mode == 'release':
commands.append('./scripts/build/release-packages.sh ${DRONE_TAG}')
commands.extend([drone_tag_cmd, './scripts/build/release-packages.sh $${DRONE_TAG}',])
return {
'name': 'release-npm-packages',
......@@ -139,8 +140,9 @@ def release_pipelines():
},
},
'commands': [
'./bin/grabpl publish-packages --edition oss ${DRONE_TAG}',
'./bin/grabpl publish-packages --edition enterprise ${DRONE_TAG}',
drone_tag_cmd,
'./bin/grabpl publish-packages --edition oss $${DRONE_TAG}',
'./bin/grabpl publish-packages --edition enterprise $${DRONE_TAG}',
],
},
], depends_on=[p['name'] for p in oss_pipelines + enterprise_pipelines], install_deps=False,
......
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