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,48 +1,53 @@
kind: pipeline kind: pipeline
type: exec
name: deploy CV name: deploy CV
steps: steps:
- name: build - name: build
image: aergus/latex commands:
pull: always - nix develop -c make
commands:
- make
- name: deploy - name: check
image: appleboy/drone-scp commands:
settings: - nix flake check
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: notify - name: deploy
image: plugins/matrix commands:
settings: - nix run github:ambroisie/nix-config#drone-scp
homeserver: environment:
from_secret: matrix_homeserver SCP_SOURCE: '*.pdf'
roomid: SCP_RM: true # Make sure only the newly generated files are left
from_secret: matrix_roomid SCP_HOST:
username: from_secret: ssh_host
from_secret: matrix_username SCP_TARGET:
password: from_secret: ssh_target
from_secret: matrix_password SCP_USERNAME:
trigger: from_secret: ssh_user
status: SCP_KEY:
- failure from_secret: ssh_key
- success SCP_PORT:
from_secret: ssh_port
when:
branch:
- main
event:
exclude:
- pull_request
- name: notifiy
commands:
- nix run .#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: outputs = { self, nixpkgs, futils } @ inputs:
futils.lib.eachSystem futils.lib.allSystems (system: futils.lib.eachDefaultSystem (system:
let let
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};