aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
blob: e3106ec432d9b140d664b5afb0b90d986632430a (plain) (blame)
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
image: nixos/unstable
repositories:
  nixpkgs: https://nixos.org/channels/nixpkgs-unstable
triggers:
  - condition: failure
    action: email
    to: EuAndreh <ci@euandre.org>
sources:
  - https://git.sr.ht/~euandreh/vps
  - https://git.sr.ht/~euandreh/vps-state
secrets:
  - d587955c-03fb-42ba-9e01-68ca8ed89f99
  - 7084b7c7-12be-4509-8927-81ba6eeb1fc0
tasks:
  - git-crypt-unlock: |
      cd vps/
      git crypt unlock
      cd ../vps-state/
      git crypt unlock
  - tests: |
      cd vps/
      nix-build -A test
  - deploy: |
      cd vps/
      nix-shell --run "bash -c ./provision.sh"