Skip to content

Commit ed91c2a

Browse files
fix(gitlab-ci): prevent empty stages when kubernetes disabled
1 parent f42cd8b commit ed91c2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/scaffold_gitlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def _global_section(args):
9393
stages.append("build")
9494
if args.type in ("test", "complete"):
9595
stages.append("test")
96-
if args.type in ("deploy", "complete") and args.kubernetes:
96+
if args.type == "deploy" or (args.type == "complete" and args.kubernetes):
9797
stages.append("deploy")
9898

9999
return {

0 commit comments

Comments
 (0)