WIP
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bruno BELANYI 2021-08-08 18:17:23 +02:00
parent fbe490087b
commit 90049627c3

View file

@ -29,17 +29,18 @@ local Pipeline(isDev) = {
{ {
name: "deploy", name: "deploy",
commands: [ commands: [
"env",
"nix run github:ambroisie/nix-config#drone-scp", "nix run github:ambroisie/nix-config#drone-scp",
], ],
settings: { environment: {
source: "public/*", SCP_SOURCE: "public/*",
strip_components: 1, # Remove 'public/' suffix from file paths SCP_STRIP_COMPONENTS: 1, # Remove 'public/' suffix from file paths
rm: true, # Remove previous files from target directory SCP_RM: true, # Remove previous files from target directory
host: { from_secret: "ssh_host" }, SCP_HOST: { from_secret: "ssh_host" },
target: { from_secret: "ssh_target" + if isDev then "_dev" else "" }, SCP_TARGET: { from_secret: "ssh_target" + if isDev then "_dev" else "" },
username: { from_secret: "ssh_user" }, SCP_USERNAME: { from_secret: "ssh_user" },
key: { from_secret: "ssh_key" }, SCP_KEY: { from_secret: "ssh_key" },
port: { from_secret: "ssh_port" }, SCP_PORT: { from_secret: "ssh_port" },
}, },
}, },
{ {