diff --git a/.drone.star b/.drone.star index 65db6fb..08d5e85 100644 --- a/.drone.star +++ b/.drone.star @@ -160,8 +160,9 @@ def main(ctx): for jinja_template in TEMPLATES: for (coder_template, context) in TEMPLATES[jinja_template].items(): target_clusters = [{"name": DEFAULT_CLUSTER_NAME}] - for cluster_name in context.pop("clusters", []): - target_clusters.append({"name": cluster_name, "config_path": CLUSTERS[cluster_name]}) + if "target_clusters" in context: + for cluster_name in context["target_clusters"]: + target_clusters.append({"name": cluster_name, "config_path": CLUSTERS[cluster_name]}) context["target_clusters"] = target_clusters pipeline["steps"].extend([