Another git buildfix
This commit is contained in:
parent
a62fcf4c07
commit
97480d592a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue