Compare commits
1 Commits
main
...
renovate/a
Author | SHA1 | Date | |
---|---|---|---|
11c10fa0e6 |
@@ -33,7 +33,7 @@ steps:
|
||||
- chmod -R 600 ~/.ssh
|
||||
- |
|
||||
cat >$HOME/.ssh/config <<EOL
|
||||
Host git.kjuulh.io
|
||||
Host git.front.kjuulh.io
|
||||
IdentityFile $HOME/.ssh/id_ed25519
|
||||
IdentitiesOnly yes
|
||||
UserKnownHostsFile=/dev/null
|
||||
|
1795
Cargo.lock
generated
1795
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -4,12 +4,11 @@ resolver = "2"
|
||||
|
||||
[workspace.dependencies]
|
||||
|
||||
anyhow = { version = "1" }
|
||||
anyhow = { version = "1.0.86" }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tracing = { version = "0.1", features = ["log"] }
|
||||
tracing-subscriber = { version = "0.3" }
|
||||
tracing-subscriber = { version = "0.3.18" }
|
||||
clap = { version = "4.5.4", features = ["derive", "env"] }
|
||||
dotenv = { version = "0.15" }
|
||||
dagger-sdk = "0.18.3"
|
||||
dotenv = { version = "0.15.0" }
|
||||
|
||||
cuddle-clusters = { git = "https://git.kjuulh.io/kjuulh/cuddle-clusters", branch = "main" } #tag = "v0.1.1" }
|
||||
cuddle-clusters = { git = "https://git.front.kjuulh.io/kjuulh/cuddle-clusters", branch = "main" } #tag = "v0.1.1" }
|
||||
|
@@ -7,10 +7,10 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
tokio.workspace = true
|
||||
dagger-sdk.workspace = true
|
||||
|
||||
dagger-sdk = "0.18.0"
|
||||
eyre = { version = "0.6.12" }
|
||||
|
||||
dagger-components = { git = "https://git.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
dagger-rust = { git = "https://git.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
cuddle-ci = { git = "https://git.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
dagger-components = { git = "https://git.front.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
dagger-rust = { git = "https://git.front.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
cuddle-ci = { git = "https://git.front.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
|
@@ -5,14 +5,15 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
tokio.workspace = true
|
||||
dagger-sdk.workspace = true
|
||||
|
||||
dagger-sdk = "0.18.0"
|
||||
eyre = { version = "0.6.12" }
|
||||
|
||||
tracing.workspace = true
|
||||
tracing-subscriber.workspace = true
|
||||
|
||||
eyre = { version = "0.6" }
|
||||
async-trait = "0.1"
|
||||
|
||||
dagger-components = { git = "https://git.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
dagger-rust = { git = "https://git.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
cuddle-ci = { git = "https://git.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
dagger-components = { git = "https://git.front.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
dagger-rust = { git = "https://git.front.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
cuddle-ci = { git = "https://git.front.kjuulh.io/kjuulh/dagger-components", branch = "main" }
|
||||
cuddle-clusters.workspace = true
|
||||
async-trait = "0.1.80"
|
||||
|
@@ -38,18 +38,88 @@ async fn main() -> eyre::Result<()> {
|
||||
.with_mold("2.3.3")
|
||||
.to_owned();
|
||||
|
||||
let render = &RustServiceRender {
|
||||
service: cuddle_file.vars.service.clone(),
|
||||
//registry: "http://127.0.0.1:7900".into(),
|
||||
//registry: "http://10.0.11.19:7900".into(),
|
||||
registry: "https://releaser.i.kjuulh.io:443".into(),
|
||||
};
|
||||
let deployment = &CuddleReleaser::new(client.clone()).await?;
|
||||
|
||||
let mut ci = CuddleCI::default();
|
||||
ci.with_pull_request(service)
|
||||
.with_pull_request(render)
|
||||
.with_main(service)
|
||||
.with_main(deployment);
|
||||
.with_main(render)
|
||||
.with_main(deployment)
|
||||
.with_release(service);
|
||||
|
||||
if cuddle_file.please.is_some() {
|
||||
ci.with_main(&CuddlePlease::new(client.clone()));
|
||||
}
|
||||
|
||||
ci.execute(std::env::args()).await?;
|
||||
let name = cuddle_file.vars.service.clone();
|
||||
let system_time = SystemTime::now().duration_since(UNIX_EPOCH)?;
|
||||
let build_notifications = client
|
||||
.container()
|
||||
.from("docker.io/kasperhermansen/build-notifications:main-1731768496")
|
||||
.with_env_variable("TIME", system_time.as_secs().to_string())
|
||||
.with_env_variable(
|
||||
"SERVICE_HOST",
|
||||
"https://build-notifications.prod.internal.kjuulh.app",
|
||||
)
|
||||
.with_env_variable(
|
||||
"SERVICE_GRPC_HOST",
|
||||
"https://grpc.build-notifications.prod.internal.kjuulh.app",
|
||||
);
|
||||
|
||||
if let Err(e) = build_notifications
|
||||
.with_exec(vec![
|
||||
"build-notifications",
|
||||
"build-started",
|
||||
"--project-name",
|
||||
&name,
|
||||
])
|
||||
.sync()
|
||||
.await
|
||||
{
|
||||
tracing::warn!("failed to send start notification: {}", e.to_string())
|
||||
}
|
||||
|
||||
match ci.execute(std::env::args()).await {
|
||||
Ok(()) => {
|
||||
if let Err(e) = build_notifications
|
||||
.with_exec(vec![
|
||||
"build-notifications",
|
||||
"build-success",
|
||||
"--project-name",
|
||||
&name,
|
||||
])
|
||||
.sync()
|
||||
.await
|
||||
{
|
||||
tracing::warn!("failed to send success notification: {}", e.to_string())
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
if let Err(e) = build_notifications
|
||||
.with_exec(vec![
|
||||
"build-notifications",
|
||||
"build-failure",
|
||||
"--project-name",
|
||||
&name,
|
||||
"--error",
|
||||
&e.to_string(),
|
||||
])
|
||||
.sync()
|
||||
.await
|
||||
{
|
||||
tracing::warn!("failed to send failure notification: {}", e.to_string())
|
||||
}
|
||||
|
||||
return Err(e);
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
})
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# yaml-language-server: $schema=https://git.kjuulh.io/kjuulh/cuddle/raw/branch/main/schemas/base.json
|
||||
# yaml-language-server: $schema=https://git.front.kjuulh.io/kjuulh/cuddle/raw/branch/main/schemas/base.json
|
||||
|
||||
base: "git@git.kjuulh.io:kjuulh/cuddle-base.git"
|
||||
base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"
|
||||
|
||||
vars:
|
||||
service: "cuddle-rust-service-plan"
|
||||
|
@@ -17,7 +17,7 @@ steps:
|
||||
- chmod -R 600 ~/.ssh
|
||||
- |
|
||||
cat >$HOME/.ssh/config <<EOL
|
||||
Host git.kjuulh.io
|
||||
Host git.front.kjuulh.io
|
||||
IdentityFile $HOME/.ssh/id_ed25519
|
||||
IdentitiesOnly yes
|
||||
UserKnownHostsFile=/dev/null
|
||||
|
Reference in New Issue
Block a user