summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/deploy/deploy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/deploy/deploy.go b/internal/deploy/deploy.go
index 751c976..30846ac 100644
--- a/internal/deploy/deploy.go
+++ b/internal/deploy/deploy.go
@@ -63,7 +63,7 @@ func Run(ctx context.Context, out io.Writer, cfg layout.Config, app, sha string)
}()
fmt.Fprintln(out, "==> building")
- if err := sh.Run(ctx, out, releaseDir, "make", "-B"); err != nil {
+ if err := sh.Run(ctx, out, "", "jexec", app, "make", "-B", "-C", cfg.ReleaseDirInJail(sha)); err != nil {
return fmt.Errorf("build: %w", err)
}
if _, err := os.Stat(filepath.Join(releaseDir, "app")); err != nil {