.gitlab-ci.yml 1.08 KB
Newer Older
Matthias Adamczyk's avatar
Matthias Adamczyk committed
1
2
3
4
5
6
7
8
9
stages:
- setup
- triggers

# Since the gitlab-ci.yml format is relatively limited, we generate the nixos-rebuild jobs as a child pipeline
# See https://about.gitlab.com/blog/2020/04/24/parent-child-pipelines/ for more info on child pipelines
generate-nixos-pipeline:
  stage: setup
  tags:
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
10
  - nix
Matthias Adamczyk's avatar
Matthias Adamczyk committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  script:
  - nix-build .nixos-gitlab-ci.yml.nix
  - cp result .nixos-gitlab-ci.yml
  artifacts:
    paths:
    - .nixos-gitlab-ci.yml

nixos:
  stage: triggers
  needs:
  - generate-nixos-pipeline
  trigger:
    include:
    - artifact: .nixos-gitlab-ci.yml
      job: generate-nixos-pipeline
    strategy: depend

editorconfig:
  stage: triggers
  needs: []
  tags:
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
32
  - nix
Matthias Adamczyk's avatar
Matthias Adamczyk committed
33
34
35
36
37
38
39
  script:
  - nix-shell -p editorconfig-checker --run editorconfig-checker -I nixpkgs=channel:nixos-unstable

iso_image:
  stage: triggers
  needs: []
  tags:
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
40
  - nix
Matthias Adamczyk's avatar
Matthias Adamczyk committed
41
  script:
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
42
  - nix-shell -p git --run 'nix-build -A isoImage'
Matthias Adamczyk's avatar
Matthias Adamczyk committed
43
44
45
46
47
48
49
50
  artifacts:
    paths:
    - result/*

kexec_tarball:
  stage: triggers
  needs: []
  tags:
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
51
  - nix
Matthias Adamczyk's avatar
Matthias Adamczyk committed
52
  script:
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
53
  - nix-shell -p git --run 'nix-build -A kexec_tarball'
Matthias Adamczyk's avatar
Matthias Adamczyk committed
54
55
56
  artifacts:
    paths:
    - result/*