Another git buildfix
This commit is contained in:
parent
a62fcf4c07
commit
97480d592a
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ let
|
||||||
git "push" "--all" "-f" mirror
|
git "push" "--all" "-f" mirror
|
||||||
deploy <- lookupEnv "GL_OPTION_WEB_DEPLOY"
|
deploy <- lookupEnv "GL_OPTION_WEB_DEPLOY"
|
||||||
whenJust deploy $ \deploy -> do
|
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
|
(decodeUtf8 -> path) <- pwd |> captureTrim
|
||||||
echo ([i|Deploying build to /var/www/#{deploy}|] :: String)
|
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
|
bracket (checkout path) (rm "-rf") $ \dir -> withCurrentDirectory dir $ nix-build "-o" ([i|/var/www/#{deploy}|] :: String) target
|
||||||
|
|
Loading…
Reference in a new issue