Skip to content

Commit a5620f3

Browse files
chore: if in the template, not the job
1 parent 8017a4a commit a5620f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.gitlab/templates/pipeline.yaml.tpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,20 @@ variables:
1717

1818
{{ range $flavor := (ds "flavors").flavors }}
1919

20+
{{ if $flavor.needs_code_checks }}
2021

2122
cargo fmt ({{ $flavor.name }}):
2223
stage: check code
2324
tags: ["arch:{{ $flavor.arch }}"]
2425
image: ${CI_DOCKER_TARGET_IMAGE}:${CI_DOCKER_TARGET_VERSION}
25-
rules:
26-
- if: {{ $flavor.needs_code_checks }}
2726
needs: []
2827
script:
2928
- cd bottlecap && cargo fmt
3029

30+
{{ end }} # end needs_code_checks
3131

3232
{{ end }} # end flavors
3333

34-
3534
{{ range $architecture := (ds "architectures").architectures }}
3635

3736
cargo check ({{ $architecture.name }}):

0 commit comments

Comments
 (0)