feat: with &mut service
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 2023-11-27 19:20:41 +01:00
parent 93e73cc66e
commit 999d81bb7a
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -324,6 +324,28 @@ impl MainAction for RustService {
} }
} }
#[async_trait]
impl PullRequestAction for &mut RustService {
async fn execute_pull_request(&self) -> eyre::Result<()> {
self.build_test().await?;
Ok(())
}
}
#[async_trait]
impl MainAction for &mut RustService {
async fn execute_main(&self) -> eyre::Result<()> {
let container = self.build_release().await?;
container
.publish(format!("docker.io/kjuulh/{}", self.bin_name))
.await?;
Ok(())
}
}
pub mod architecture { pub mod architecture {
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub enum Architecture { pub enum Architecture {