mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-28 16:05:01 +08:00
feat(release): build the docker image by pulling the base image first
This commit is contained in:
parent
483bab095b
commit
99360626e0
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ else if ($options['docker']) {
|
|||
$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_filename} -t snappymail:{$package->version}");
|
||||
passthru("{$docker} build --pull " . __DIR__ . "/.docker/release/ --build-arg FILES_ZIP={$zip_filename} -t snappymail:{$package->version}");
|
||||
} else {
|
||||
echo "Docker not installed!\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue