-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
134 lines (114 loc) · 2.72 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
include:
# Overriden in .rules-default but left here for reference
- template: Workflows/MergeRequest-Pipelines.gitlab-ci.yml
- local: .gitlab/ci/templates.yml
generate checks pipelines:
extends: .generate-pipelines
script:
- .gitlab/ci/generate-checks-pipeline.sh | tee pipeline.yml
generate checks pipelines for forks:
extends:
- generate checks pipelines
- .fork-default
generate images pipelines:
extends: .generate-pipelines
script:
- .gitlab/ci/generate-images-pipeline.sh | tee pipeline.yml
generate images pipelines for forks:
extends:
- generate images pipelines
- .fork-default
generate packages pipelines:
extends: .generate-pipelines
script:
- .gitlab/ci/generate-packages-pipeline.sh | tee pipeline.yml
generate packages pipelines for forks:
extends:
- generate packages pipelines
- .fork-default
trigger checks pipelines:
extends: .trigger
needs:
- generate checks pipelines
trigger:
include:
- job: generate checks pipelines
artifact: pipeline.yml
trigger checks pipelines for forks:
extends:
- trigger checks pipelines
- .rules-fork-default
needs:
- generate checks pipelines for forks
trigger:
include:
- job: generate checks pipelines for forks
artifact: pipeline.yml
trigger images pipelines:
extends: .trigger
needs:
- generate images pipelines
trigger:
include:
- job: generate images pipelines
artifact: pipeline.yml
trigger images pipelines for forks:
extends:
- trigger images pipelines
- .rules-fork-default
needs:
- generate images pipelines for forks
trigger:
include:
- job: generate images pipelines for forks
artifact: pipeline.yml
trigger packages pipelines:
extends: .trigger
needs:
- generate packages pipelines
trigger:
include:
- job: generate packages pipelines
artifact: pipeline.yml
trigger packages pipelines for forks:
extends:
- trigger packages pipelines
- .rules-fork-default
needs:
- generate packages pipelines for forks
trigger:
include:
- job: generate packages pipelines for forks
artifact: pipeline.yml
# Lint
show:
extends: .qa
script:
- nix flake show
show for forks:
extends:
- show
- .fork-default
fmt:
extends: .qa
script:
- nix run .#nixpkgs-fmt -- --check $(find -name \*.nix)
after_script:
- nix run .#nixpkgs-fmt -- $(find -name \*.nix)
- git diff | tee nixpkgs-fmt.diff
artifacts:
when: on_failure
expose_as: "nixpkgs-fmt diff"
paths:
- nixpkgs-fmt.diff
fmt for forks:
extends:
- fmt
- .fork-default
# Docker
nix-docker:
extends: .docker
needs: []
variables:
IMAGE: nix