1
0
Fork 0

Another git buildfix

This commit is contained in:
Malte Brandy 2020-04-11 17:51:18 +02:00
parent a62fcf4c07
commit 97480d592a

View file

@ -30,7 +30,7 @@ let
git "push" "--all" "-f" mirror
deploy <- lookupEnv "GL_OPTION_WEB_DEPLOY"
whenJust deploy $ \deploy -> do
(maybe [] ("-A":) -> target) <- lookupEnv "GL_OPTION_WEB_DEPLOY_NIX_TARGET"
(maybe [] (\x -> ["-A",x]) -> target) <- lookupEnv "GL_OPTION_WEB_DEPLOY_NIX_TARGET"
(decodeUtf8 -> path) <- pwd |> captureTrim
echo ([i|Deploying build to /var/www/#{deploy}|] :: String)
bracket (checkout path) (rm "-rf") $ \dir -> withCurrentDirectory dir $ nix-build "-o" ([i|/var/www/#{deploy}|] :: String) target