2023-08-11 19:46:08 +02:00
|
|
|
use dagger_cuddle_please::{models::CuddlePleaseSrcArgs, DaggerCuddlePleaseAction};
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
pub async fn main() -> eyre::Result<()> {
|
2024-08-01 22:19:59 +02:00
|
|
|
dagger_sdk::connect(|client| async move {
|
|
|
|
DaggerCuddlePleaseAction::dagger(client.clone())
|
|
|
|
.execute_src(&CuddlePleaseSrcArgs {
|
|
|
|
cuddle_image: "kasperhermansen/cuddle-please:main-1691504183".into(),
|
|
|
|
server: dagger_cuddle_please::models::SrcServer::Gitea {
|
|
|
|
token: std::env::var("CUDDLE_PLEASE_TOKEN")
|
|
|
|
.expect("CUDDLE_PLEASE_TOKEN to be present"),
|
|
|
|
},
|
|
|
|
log_level: Some(dagger_cuddle_please::models::LogLevel::Debug),
|
|
|
|
})
|
|
|
|
.await?;
|
2023-08-11 19:46:08 +02:00
|
|
|
|
2024-08-01 22:19:59 +02:00
|
|
|
Ok(())
|
|
|
|
})
|
|
|
|
.await?;
|
2023-08-11 19:46:08 +02:00
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|