Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Fix volume target, use the last part

Trung-DV4f77bd434723
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 7ce511f2c3..a6b8fe55bb 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -3420,7 +3420,7 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
}
if (is_string($volume)) {
$source = str($volume)->before(':');
- $target = str($volume)->after(':')->beforeLast(':');
+ $target = str($volume)->afterLast(':');
$source = $name;
$volume = "$source:$target";
} elseif (is_array($volume)) {