2023-08-11 19:46:08 +02:00
|
|
|
use dagger_cuddle_please::{models::CuddlePleaseSrcArgs, DaggerCuddlePleaseAction};
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
pub async fn main() -> eyre::Result<()> {
|
|
|
|
let client = dagger_sdk::connect().await?;
|
|
|
|
|
|
|
|
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"),
|
|
|
|
},
|
2023-08-11 20:01:05 +02:00
|
|
|
log_level: Some(dagger_cuddle_please::models::LogLevel::Debug),
|
2023-08-11 19:46:08 +02:00
|
|
|
})
|
|
|
|
.await?;
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|