WIP
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Bruno BELANYI 2021-08-08 18:06:40 +02:00
parent ff6f01534e
commit fbe490087b

View file

@ -29,13 +29,17 @@ local Pipeline(isDev) = {
{ {
name: "deploy", name: "deploy",
commands: [ commands: [
"nix develop -c make deploy", "nix run github:ambroisie/nix-config#drone-scp",
], ],
environment: { settings: {
SSH_HOST: { from_secret: "ssh_host" }, source: "public/*",
SSH_TARGET: { from_secret: "ssh_target" + if isDev then "_dev" else "" }, strip_components: 1, # Remove 'public/' suffix from file paths
SSH_USER: { from_secret: "ssh_user" }, rm: true, # Remove previous files from target directory
SSH_KEY: { from_secret: "ssh_key" }, host: { from_secret: "ssh_host" },
target: { from_secret: "ssh_target" + if isDev then "_dev" else "" },
username: { from_secret: "ssh_user" },
key: { from_secret: "ssh_key" },
port: { from_secret: "ssh_port" },
}, },
}, },
{ {