Test Deploy Secret

This commit is contained in:
2023-03-09 18:34:50 -05:00
parent f02e82afa2
commit 09b8a6bf33
4 changed files with 47 additions and 9 deletions

View File

@@ -119,12 +119,21 @@
newalan = pkgs.writeScript "run-me" ''
#!${pkgs.runtimeShell}
echo ${self.rev}
## Todo grab git deployment key
## Use this secret to deploy
## with deploy.nix
##
## Need buildInputs to depend
## on newalan, and also newalan-tests??
tmp=$(mktemp -d)
cd $tmp
echo Working in: $tmp
echo Downloading revision...
${pkgs.wget}/bin/wget https://git.syzygial.cc/Syzygial/New-Alan/archive/${self.rev}.zip
${pkgs.unzip}/bin/unzip ${self.rev}.zip
rm ${self.rev}.zip
cd *
ls
sops -d secrets/deploy.sh | bash
'';
};
};