Compare commits

...

4 commits

Author SHA1 Message Date
Bruno BELANYI 430618c846 ci: fix path to build output
All checks were successful
continuous-integration/drone/push Build is passing
2021-08-08 20:12:04 +02:00
Bruno BELANYI 46af990656 ci: add check step 2021-08-08 20:12:04 +02:00
Bruno BELANYI 2ab1d411a3 nix: use eachDefaultSystem
Otherwise `nix flake check` breaks...
2021-08-08 20:12:04 +02:00
Bruno BELANYI 16750e7161 ci: use exec runner 2021-08-08 20:12:04 +02:00
2 changed files with 48 additions and 43 deletions

View file

@ -1,48 +1,53 @@
kind: pipeline
type: exec
name: deploy CV
steps:
- name: build
image: aergus/latex
pull: always
commands:
- make
- name: build
commands:
- nix develop -c make
- 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:
from_secret: ssh_host
target:
from_secret: ssh_target
username:
from_secret: ssh_user
key:
from_secret: ssh_key
port:
from_secret: ssh_port
when:
branch:
- main
event:
exclude:
- pull_request
- name: check
commands:
- nix flake check
- name: notify
image: plugins/matrix
settings:
homeserver:
from_secret: matrix_homeserver
roomid:
from_secret: matrix_roomid
username:
from_secret: matrix_username
password:
from_secret: matrix_password
trigger:
status:
- failure
- success
- name: deploy
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
SCP_TARGET:
from_secret: ssh_target
SCP_USERNAME:
from_secret: ssh_user
SCP_KEY:
from_secret: ssh_key
SCP_PORT:
from_secret: ssh_port
when:
branch:
- main
event:
exclude:
- pull_request
- name: notifiy
commands:
- nix run github:ambroisie/matrix-notifier
environment:
ADDRESS:
from_secret: matrix_homeserver
ROOM:
from_secret: matrix_roomid
USER:
from_secret: matrix_username
PASS:
from_secret: matrix_password
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};