From 483bab095bf04d054e77c9db4a00820175cf744a Mon Sep 17 00:00:00 2001 From: kouinkouin Date: Wed, 18 May 2022 22:34:08 +0200 Subject: [PATCH] fix(release): the $ZIP_FILES was a fullpath instead of a filename #405 --- release.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/release.php b/release.php index 7920932cb..8913ca609 100755 --- a/release.php +++ b/release.php @@ -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"; }