Compare commits
4 commits
2a50374691
...
267f5c8598
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 267f5c8598 | ||
Bruno BELANYI | 454d2b969e | ||
Bruno BELANYI | 0ed5b0fb64 | ||
Bruno BELANYI | 67646b1f92 |
91
.drone.yml
91
.drone.yml
|
@ -1,48 +1,55 @@
|
||||||
|
---
|
||||||
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
|
||||||
|
...
|
||||||
|
|
|
@ -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