Compare commits

..

No commits in common. "588d2b3f216048cb9a8f1d12de0712094a5460d2" and "30b47b9103a84ca5435e31a14707e2fd910210b5" have entirely different histories.

2 changed files with 16 additions and 17 deletions

View file

@ -29,16 +29,17 @@ local Pipeline(isDev) = {
{ {
name: "deploy", name: "deploy",
commands: [ commands: [
"nix run github:ambroisie/nix-config#drone-rsync", "nix run github:ambroisie/nix-config#drone-scp",
], ],
environment: { environment: {
# Trailing slash to synchronize the folder's *content* to the target SCP_SOURCE: "public/*",
SYNC_SOURCE: "public/", TAR_STRIP_COMPONENTS: 1, # Remove 'public/' suffix from file paths
SYNC_HOST: { from_secret: "ssh_host" }, SCP_RM: true, # Remove previous files from target directory
SYNC_TARGET: { from_secret: "ssh_target" + if isDev then "_dev" else "" }, SCP_HOST: { from_secret: "ssh_host" },
SYNC_USERNAME: { from_secret: "ssh_user" }, SCP_TARGET: { from_secret: "ssh_target" + if isDev then "_dev" else "" },
SYNC_KEY: { from_secret: "ssh_key" }, SCP_USERNAME: { from_secret: "ssh_user" },
SYNC_PORT: { from_secret: "ssh_port" }, SCP_KEY: { from_secret: "ssh_key" },
SCP_PORT: { from_secret: "ssh_port" },
}, },
}, },
{ {

View file

@ -61,17 +61,15 @@
}; };
}; };
devShells = { devShell = pkgs.mkShell {
default = pkgs.mkShell { name = "blog";
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;
};
}; };
} }
); );