feat: with &mut service
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
93e73cc66e
commit
999d81bb7a
@ -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 {
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum Architecture {
|
||||
|
Loading…
Reference in New Issue
Block a user