feat(release): build the docker image by pulling the base image first

This commit is contained in:
kouinkouin 2022-05-18 22:35:06 +02:00
parent 483bab095b
commit 99360626e0
No known key found for this signature in database
GPG key ID: 464992F465AA5084

View file

@ -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";
}