This commit is contained in:
2024-04-24 13:36:07 +02:00
parent baf721c4e8
commit 1f6c75e9f5
4 changed files with 154 additions and 11 deletions

View File

@@ -233,7 +233,7 @@ def get_results(config, files, root_dir):
),
}
if "on-$(params.pipeline-type).yaml" in config["files"]:
append_stage(stages, "global", "$(params.pipeline-type)", config["files"])
append_key(stages, "global", "$(params.pipeline-type)")
return stages, args
if "Dockerfile" in files:
@@ -258,6 +258,8 @@ def get_results(config, files, root_dir):
for stage in ["prepare", "lint", "build", "test", "publish"]:
if "on-{stage}.yaml" in config["files"]:
stages[stage] = ["custom"]
if len(stages[stage])>0:
append_stage(stages, "global", "on-{stage}".format(stage = stage), config["files"])
return stages, args