mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
fix(release): the $ZIP_FILES was a fullpath instead of a filename #405
This commit is contained in:
parent
ea5224c7e3
commit
483bab095b
1 changed files with 3 additions and 2 deletions
|
|
@ -236,9 +236,10 @@ else if (isset($options['debian'])) {
|
||||||
// Docker build
|
// Docker build
|
||||||
else if ($options['docker']) {
|
else if ($options['docker']) {
|
||||||
echo "\x1b[33;1m === Docker === \x1b[0m\n";
|
echo "\x1b[33;1m === Docker === \x1b[0m\n";
|
||||||
copy($zip_destination, "./.docker/release/snappymail-{$package->version}.zip");
|
$zip_filename = "snappymail-{$package->version}.zip";
|
||||||
|
copy($zip_destination, "./.docker/release/{$zip_filename}");
|
||||||
if ($docker) {
|
if ($docker) {
|
||||||
passthru("{$docker} build " . __DIR__ . "/.docker/release/ --build-arg FILES_ZIP={$zip_destination} -t snappymail:{$package->version}");
|
passthru("{$docker} build " . __DIR__ . "/.docker/release/ --build-arg FILES_ZIP={$zip_filename} -t snappymail:{$package->version}");
|
||||||
} else {
|
} else {
|
||||||
echo "Docker not installed!\n";
|
echo "Docker not installed!\n";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue