Compare commits

...

2 commits

Author SHA1 Message Date
Bruno BELANYI 588d2b3f21 nix: remove deprecated flake attributes
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-20 14:46:37 +02:00
Bruno BELANYI 3e3cc71043 ci: migrate to drone-rsync 2022-06-20 14:46:03 +02:00
2 changed files with 17 additions and 16 deletions

View file

@ -29,17 +29,16 @@ local Pipeline(isDev) = {
{
name: "deploy",
commands: [
"nix run github:ambroisie/nix-config#drone-scp",
"nix run github:ambroisie/nix-config#drone-rsync",
],
environment: {
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" },
# 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" },
},
},
{

View file

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