Turn off new seal post actions for now
parent
36dc131440
commit
6b08ca84a1
|
@ -4,13 +4,13 @@ let
|
|||
PROJECT_ROOT = builtins.toString ./.;
|
||||
in
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
newSealPost = pkgs.writeShellScriptBin "newSealPost.sh" (builtins.readFile ./cutesealfanpage.love/newSealPost.sh);
|
||||
})
|
||||
];
|
||||
# nixpkgs.overlays = [
|
||||
# (self: super: {
|
||||
# newSealPost = pkgs.writeShellScriptBin "newSealPost.sh" (builtins.readFile ./cutesealfanpage.love/newSealPost.sh);
|
||||
# })
|
||||
# ];
|
||||
|
||||
environment.systemPackages = [ pkgs.newSealPost ];
|
||||
# environment.systemPackages = [ pkgs.newSealPost ];
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
|
@ -32,10 +32,10 @@ in
|
|||
# uncomment this to use the staging server
|
||||
# security.acme.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||
|
||||
services.cron = {
|
||||
enable = true;
|
||||
systemCronJobs = [
|
||||
"12 12 * * * alice . /etc/profile; ${pkgs.newSealPost} > /home/alice/logs/backup.log 2>&1"
|
||||
];
|
||||
};
|
||||
# services.cron = {
|
||||
# enable = true;
|
||||
# systemCronJobs = [
|
||||
# "12 12 * * * alice . /etc/profile; ${pkgs.newSealPost} > /home/alice/logs/backup.log 2>&1"
|
||||
# ];
|
||||
# };
|
||||
}
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/sh
|
||||
HOME="/home/alice/seal-blog"
|
||||
|
||||
# Call generateSealPosts from root of blog
|
||||
# This will generate posts up to today
|
||||
cd $HOME
|
||||
./generate/generateSealPosts
|
||||
|
||||
# cd to website so site can find posts folder and build
|
||||
cd $HOME/website
|
||||
|
||||
# Before our posts will show up on the site
|
||||
# we need to build them so they're generated
|
||||
# from our site.hs logic
|
||||
./site build
|
||||
|
||||
# Push to git
|
||||
cd $HOME
|
||||
ssh-add
|
||||
git add .
|
||||
git config user.name "Alice"
|
||||
git config user.email "admin@cutesealfanpage.love"
|
||||
git commit -m "Daily blog update"
|
||||
git push origin main
|
Loading…
Reference in New Issue