ci: only use workaround in case of marketplace publishing on azure
@@ -63,10 +63,12 @@ def promote_single_step(
logger.info('artifacts were already published - exiting now')
sys.exit(0)
- if release_manifest.platform == 'azure':
+ if release_manifest.platform == 'azure' and not cicd_cfg.publish.azure.shared_gallery_cfg_name:
# publishing on azure is currently a lengthy process. We do, however, already know the URN
# it will end up at.
# Prepare the information here already - will be overwritten if actual publishing proceeds.
+ # Note: This is not done if we will publish using the community gallery (currently
+ # determined by the presence of a Gallery-cfg name)
publisher_id = cicd_cfg.publish.azure.publisher_id
offer_id = cicd_cfg.publish.azure.offer_id
plan_id = cicd_cfg.publish.azure.plan_id
