mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 01:17:04 +03: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";
|
$zip_filename = "snappymail-{$package->version}.zip";
|
||||||
copy($zip_destination, "./.docker/release/{$zip_filename}");
|
copy($zip_destination, "./.docker/release/{$zip_filename}");
|
||||||
if ($docker) {
|
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 {
|
} else {
|
||||||
echo "Docker not installed!\n";
|
echo "Docker not installed!\n";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue