generated from cobaltcore-dev/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
36 lines (33 loc) · 831 Bytes
/
.gitlab-ci.yml
File metadata and controls
36 lines (33 loc) · 831 Bytes
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
stages:
- check
- generate
- run
check:style:
stage: check
interruptible: true
tags:
- native-nix
before_script:
- git config --global --add url.${CI_SERVER_PROTOCOL}://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/.insteadOf "git@${CI_SERVER_HOST}:"
- git config --global --add url.${CI_SERVER_PROTOCOL}://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/.insteadOf "ssh://git@${CI_SERVER_HOST}/"
script:
- nix flake check
generate_ci:
stage: generate
tags:
- native-nix
script:
- nix build .#ci
- nix-shell -p yq --command "cat result | yq -y" > generated_ci.yaml
artifacts:
paths:
- generated_ci.yaml
trigger_ci:
stage: run
needs:
- generate_ci
trigger:
include:
- artifact: generated_ci.yaml
job: generate_ci
strategy: depend