Compare commits
4 commits
0757daf786
...
267f5c8598
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 267f5c8598 | ||
Bruno BELANYI | 454d2b969e | ||
Bruno BELANYI | 0ed5b0fb64 | ||
Bruno BELANYI | 67646b1f92 |
53
.drone.yml
53
.drone.yml
|
@ -1,28 +1,32 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: deploy CV
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: aergus/latex
|
||||
pull: always
|
||||
- name: build
|
||||
commands:
|
||||
- make
|
||||
- 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:
|
||||
- name: check
|
||||
commands:
|
||||
- nix flake check
|
||||
|
||||
- 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
|
||||
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 +35,21 @@ 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
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue