Compare commits

...

4 commits

Author SHA1 Message Date
Bruno BELANYI 2a50374691 ci: fix path to build output
Some checks failed
continuous-integration/drone/push Build is failing
2021-08-08 20:08:01 +02:00
Bruno BELANYI 25ae1ab53e ci: add check step 2021-08-08 20:08:01 +02:00
Bruno BELANYI 75630df80d nix: use eachDefaultSystem
Due to the pre-commit check not having every system available...
2021-08-08 20:08:01 +02:00
Bruno BELANYI 46d05fe4ae ci: use exec runner 2021-08-08 20:08:01 +02:00
2 changed files with 48 additions and 43 deletions

View file

@ -1,28 +1,31 @@
kind: pipeline
type: exec
name: deploy CV
steps:
- name: build
image: aergus/latex
pull: always
commands:
- make
- nix develop -c make
- name: check
commands:
- nix flake check
- name: deploy
image: appleboy/drone-scp
settings:
source: /drone/src/*.pdf
strip_components: 2 # Make sure the tarball doesn't contain leading path
rm: true # Make sure only the newly generated files are left
host:
commands:
- nix run github:ambroisie/nix-config#drone-scp
environment:
SCP_SOURCE: '*.pdf'
SCP_RM: true # Make sure only the newly generated files are left
SCP_HOST:
from_secret: ssh_host
target:
SCP_TARGET:
from_secret: ssh_target
username:
SCP_USERNAME:
from_secret: ssh_user
key:
SCP_KEY:
from_secret: ssh_key
port:
SCP_PORT:
from_secret: ssh_port
when:
branch:
@ -31,18 +34,20 @@ steps:
exclude:
- pull_request
- name: notify
image: plugins/matrix
settings:
homeserver:
- name: notifiy
commands:
- nix run .#matrix-notifier
environment:
ADDRESS:
from_secret: matrix_homeserver
roomid:
ROOM:
from_secret: matrix_roomid
username:
USER:
from_secret: matrix_username
password:
PASS:
from_secret: matrix_password
trigger:
when:
status:
- failure
- success

View file

@ -7,7 +7,7 @@
};
outputs = { self, nixpkgs, futils } @ inputs:
futils.lib.eachSystem futils.lib.allSystems (system:
futils.lib.eachDefaultSystem (system:
let
inherit (nixpkgs) lib;
pkgs = nixpkgs.legacyPackages.${system};