feat: more debugging
Some checks reported errors
continuous-integration/drone/push Build encountered an error

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-05-26 15:12:29 +02:00
parent 74569c3b15
commit 984d1fd259
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -3,6 +3,7 @@ use std::{
process::Command,
};
use anyhow::Context;
use flux_releaser::{
app::{LocalApp, SharedLocalApp},
services::flux_local_cluster::extensions::FluxLocalClusterManagerExt,
@ -41,13 +42,20 @@ impl Releaser {
let local_app =
SharedLocalApp::new(LocalApp::new(&self.registry).await?).flux_local_cluster_manager();
let upload_id = local_app.package_clusters(input_path).await?;
let upload_id = local_app
.package_clusters(input_path)
.await
.context("failed to package clustesrs")?;
local_app
.commit_artifact(&self.service, &branch, upload_id)
.await?;
.await
.context("failed to commit artifact")?;
local_app.trigger_release(&self.service, &branch).await?;
local_app
.trigger_release(&self.service, &branch)
.await
.context("failed to trigger release")?;
Ok(())
}