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",
commands: [
"nix run github:ambroisie/nix-config#drone-rsync",
"nix run github:ambroisie/nix-config#drone-scp",
],
environment: {
# Trailing slash to synchronize the folder's *content* to the target
SYNC_SOURCE: "public/",
SYNC_HOST: { from_secret: "ssh_host" },
SYNC_TARGET: { from_secret: "ssh_target" + if isDev then "_dev" else "" },
SYNC_USERNAME: { from_secret: "ssh_user" },
SYNC_KEY: { from_secret: "ssh_key" },
SYNC_PORT: { from_secret: "ssh_port" },
SCP_SOURCE: "public/*",
TAR_STRIP_COMPONENTS: 1, # Remove 'public/' suffix from file paths
SCP_RM: true, # Remove previous files from target directory
SCP_HOST: { from_secret: "ssh_host" },
SCP_TARGET: { from_secret: "ssh_target" + if isDev then "_dev" else "" },
SCP_USERNAME: { from_secret: "ssh_user" },
SCP_KEY: { from_secret: "ssh_key" },
SCP_PORT: { from_secret: "ssh_port" },
},
},
{

View file

@ -61,17 +61,15 @@
};
};
devShells = {
default = pkgs.mkShell {
name = "blog";
devShell = pkgs.mkShell {
name = "blog";
buildInputs = with pkgs; [
gnumake
hugo
];
buildInputs = with pkgs; [
gnumake
hugo
];
inherit (self.checks.${system}.pre-commit) shellHook;
};
inherit (self.checks.${system}.pre-commit) shellHook;
};
}
);