Test Deploy Secret
This commit is contained in:
21
flake.nix
21
flake.nix
@@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user