forked from singlestore-labs/tailscale-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (35 loc) · 837 Bytes
/
.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
build:
stage: build
image: nixos/nix:2.18.5
artifacts:
when: always
paths:
- junit.xml
- public/
reports:
junit: junit.xml
before_script:
- mkdir -p ~/.config/nix; echo "extra-experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
script:
- nix build .#default.testreport --print-build-logs
- nix build .#default.doc
after_script:
- cp result-testreport/junit.xml .
- cp -r result-doc/share/doc/tailscale-manager-*/html/ public/
pages:
stage: deploy
only:
variables: ["$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"]
environment:
name: docs
url: "$CI_PAGES_URL"
image: busybox
variables:
GIT_STRATEGY: "none"
dependencies:
- build
script:
- echo "Pages accessible through $CI_PAGES_URL"
artifacts:
paths:
- public/