1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

add command to update images

This commit is contained in:
Robin Appelman 2025-08-26 17:13:18 +02:00
commit 85335d84de
5 changed files with 93 additions and 44 deletions

View file

@ -6,7 +6,9 @@ use crate::config::HazeConfig;
use crate::database::DatabaseFamily;
use crate::exec::container_logs;
use crate::git::checkout_all;
use crate::image::update_image;
use crate::network::clear_networks;
use crate::php::PhpVersion;
use crate::proxy::proxy;
use crate::service::ServiceTrait;
use crate::service::{RedisTls, Service};
@ -436,6 +438,11 @@ async fn main() -> Result<ExitCode> {
let err = command.exec();
return Err(err).into_diagnostic();
}
HazeArgs::Update => {
for php in PhpVersion::all() {
update_image(&docker, php.image()).await?;
}
}
};
Ok(ExitCode::SUCCESS)