Compare commits
2 commits
30b47b9103
...
588d2b3f21
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 588d2b3f21 | ||
Bruno BELANYI | 3e3cc71043 |
|
@ -29,17 +29,16 @@ local Pipeline(isDev) = {
|
||||||
{
|
{
|
||||||
name: "deploy",
|
name: "deploy",
|
||||||
commands: [
|
commands: [
|
||||||
"nix run github:ambroisie/nix-config#drone-scp",
|
"nix run github:ambroisie/nix-config#drone-rsync",
|
||||||
],
|
],
|
||||||
environment: {
|
environment: {
|
||||||
SCP_SOURCE: "public/*",
|
# Trailing slash to synchronize the folder's *content* to the target
|
||||||
TAR_STRIP_COMPONENTS: 1, # Remove 'public/' suffix from file paths
|
SYNC_SOURCE: "public/",
|
||||||
SCP_RM: true, # Remove previous files from target directory
|
SYNC_HOST: { from_secret: "ssh_host" },
|
||||||
SCP_HOST: { from_secret: "ssh_host" },
|
SYNC_TARGET: { from_secret: "ssh_target" + if isDev then "_dev" else "" },
|
||||||
SCP_TARGET: { from_secret: "ssh_target" + if isDev then "_dev" else "" },
|
SYNC_USERNAME: { from_secret: "ssh_user" },
|
||||||
SCP_USERNAME: { from_secret: "ssh_user" },
|
SYNC_KEY: { from_secret: "ssh_key" },
|
||||||
SCP_KEY: { from_secret: "ssh_key" },
|
SYNC_PORT: { from_secret: "ssh_port" },
|
||||||
SCP_PORT: { from_secret: "ssh_port" },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
16
flake.nix
16
flake.nix
|
@ -61,15 +61,17 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
devShell = pkgs.mkShell {
|
devShells = {
|
||||||
name = "blog";
|
default = pkgs.mkShell {
|
||||||
|
name = "blog";
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
gnumake
|
gnumake
|
||||||
hugo
|
hugo
|
||||||
];
|
];
|
||||||
|
|
||||||
inherit (self.checks.${system}.pre-commit) shellHook;
|
inherit (self.checks.${system}.pre-commit) shellHook;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue