Compare commits
4 commits
d73cadf0c3
...
430618c846
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 430618c846 | ||
Bruno BELANYI | 46af990656 | ||
Bruno BELANYI | 2ab1d411a3 | ||
Bruno BELANYI | 16750e7161 |
51
.drone.yml
51
.drone.yml
|
@ -1,28 +1,31 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
name: deploy CV
|
name: deploy CV
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: aergus/latex
|
|
||||||
pull: always
|
|
||||||
commands:
|
commands:
|
||||||
- make
|
- nix develop -c 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
|
- name: deploy
|
||||||
rm: true # Make sure only the newly generated files are left
|
commands:
|
||||||
host:
|
- 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
|
from_secret: ssh_host
|
||||||
target:
|
SCP_TARGET:
|
||||||
from_secret: ssh_target
|
from_secret: ssh_target
|
||||||
username:
|
SCP_USERNAME:
|
||||||
from_secret: ssh_user
|
from_secret: ssh_user
|
||||||
key:
|
SCP_KEY:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
port:
|
SCP_PORT:
|
||||||
from_secret: ssh_port
|
from_secret: ssh_port
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
@ -31,18 +34,20 @@ steps:
|
||||||
exclude:
|
exclude:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
- name: notify
|
|
||||||
image: plugins/matrix
|
- name: notifiy
|
||||||
settings:
|
commands:
|
||||||
homeserver:
|
- nix run github:ambroisie/matrix-notifier
|
||||||
|
environment:
|
||||||
|
ADDRESS:
|
||||||
from_secret: matrix_homeserver
|
from_secret: matrix_homeserver
|
||||||
roomid:
|
ROOM:
|
||||||
from_secret: matrix_roomid
|
from_secret: matrix_roomid
|
||||||
username:
|
USER:
|
||||||
from_secret: matrix_username
|
from_secret: matrix_username
|
||||||
password:
|
PASS:
|
||||||
from_secret: matrix_password
|
from_secret: matrix_password
|
||||||
trigger:
|
when:
|
||||||
status:
|
status:
|
||||||
- failure
|
- failure
|
||||||
- success
|
- success
|
||||||
|
|
|
@ -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};
|
||||||
|
|
Loading…
Reference in a new issue