feat: update ci
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-07-26 22:43:05 +02:00
parent c17986182b
commit da0771ccb9
3 changed files with 944 additions and 502 deletions

1429
ci/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
chrono = "0.4.26"
color-eyre = "0.6.2"
dagger-sdk = "0.2.22"
dagger-sdk = "0.18.3"
eyre = "0.6.8"
tokio = { version = "1.31.0", features = ["full"] }
tokio-scoped = "0.2.0"

View File

@@ -6,7 +6,7 @@ use tokio::sync::Mutex;
#[tokio::main]
async fn main() -> eyre::Result<()> {
let _ = dotenv::dotenv();
let client = dagger_sdk::connect().await?;
dagger_sdk::connect(|client| async move {
let src = client.host().directory_opts(
".",
@@ -40,7 +40,7 @@ async fn main() -> eyre::Result<()> {
let pull_articles = client
.container()
.from(pull_articles_docker_image)
.with_exec(vec!["echo", &format!("{}", tag)])
.with_exec(vec!["echo", &format!("{tag}")])
.with_env_variable("GIT_USERNAME", "kjuulh")
.with_env_variable("GIT_PASSWORD", std::env::var("GIT_PASSWORD").unwrap())
.with_exec(vec![
@@ -123,11 +123,10 @@ async fn main() -> eyre::Result<()> {
let variants = platform_variants
.lock()
.await
.iter()
.map(|c| c.clone())
.iter().cloned()
.collect::<Vec<_>>();
let version = client
client
.container()
.publish_opts(
format!("kasperhermansen/kasperhermansen-blog:{tag}"),
@@ -137,7 +136,7 @@ async fn main() -> eyre::Result<()> {
)
.await?;
let update_deployment = client
client
.container()
.from(update_deployments_docker_image)
.with_env_variable("GIT_USERNAME", "kjuulh")
@@ -154,5 +153,7 @@ async fn main() -> eyre::Result<()> {
.exit_code()
.await?;
Ok(()) }).await?;
Ok(())
}