mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08: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
|
||||
else if ($options['docker']) {
|
||||
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) {
|
||||
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 {
|
||||
echo "Docker not installed!\n";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue