@@ -8,7 +8,7 @@ edition = "2021"
|
|||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = ["kjuulh <contact@kjuulh.io>"]
|
authors = ["kjuulh <contact@kjuulh.io>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://git.front.kjuulh.io/kjuulh/dagger-components"
|
repository = "https://git.kjuulh.io/kjuulh/dagger-components"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
cuddle-components = { path = "crates/cuddle-components" }
|
cuddle-components = { path = "crates/cuddle-components" }
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ mod test {
|
|||||||
#[test]
|
#[test]
|
||||||
fn parse_file() {
|
fn parse_file() {
|
||||||
let cuddle_file = r#"
|
let cuddle_file = r#"
|
||||||
base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"
|
base: "git@git.kjuulh.io:kjuulh/cuddle-base.git"
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
service: "infrastructure-example"
|
service: "infrastructure-example"
|
||||||
@@ -124,7 +124,7 @@ vars:
|
|||||||
namespace: clank_prod
|
namespace: clank_prod
|
||||||
|
|
||||||
deployment:
|
deployment:
|
||||||
registry: git@git.front.kjuulh.io:kjuulh/clank-clusters
|
registry: git@git.kjuulh.io:kjuulh/clank-clusters
|
||||||
env:
|
env:
|
||||||
prod:
|
prod:
|
||||||
clusters:
|
clusters:
|
||||||
@@ -181,7 +181,7 @@ scripts:
|
|||||||
rust: None,
|
rust: None,
|
||||||
},
|
},
|
||||||
deployment: Some(crate::cuddle_file::CuddleDeployment {
|
deployment: Some(crate::cuddle_file::CuddleDeployment {
|
||||||
registry: "git@git.front.kjuulh.io:kjuulh/clank-clusters".into(),
|
registry: "git@git.kjuulh.io:kjuulh/clank-clusters".into(),
|
||||||
env: CuddleDeploymentEnv(deployment),
|
env: CuddleDeploymentEnv(deployment),
|
||||||
}),
|
}),
|
||||||
components: Some(CuddleComponents {
|
components: Some(CuddleComponents {
|
||||||
@@ -209,7 +209,7 @@ scripts:
|
|||||||
#[test]
|
#[test]
|
||||||
fn cuddle_database_default() {
|
fn cuddle_database_default() {
|
||||||
let cuddle_file = r#"
|
let cuddle_file = r#"
|
||||||
base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"
|
base: "git@git.kjuulh.io:kjuulh/cuddle-base.git"
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
service: "infrastructure-example"
|
service: "infrastructure-example"
|
||||||
@@ -243,7 +243,7 @@ components:
|
|||||||
#[test]
|
#[test]
|
||||||
fn cuddle_packages() {
|
fn cuddle_packages() {
|
||||||
let cuddle_file = r#"
|
let cuddle_file = r#"
|
||||||
base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"
|
base: "git@git.kjuulh.io:kjuulh/cuddle-base.git"
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
service: "infrastructure-example"
|
service: "infrastructure-example"
|
||||||
|
|||||||
@@ -387,7 +387,7 @@ impl MainAction for LeptosService {
|
|||||||
"update-deployment",
|
"update-deployment",
|
||||||
"--repo",
|
"--repo",
|
||||||
&format!(
|
&format!(
|
||||||
"git@git.front.kjuulh.io:kjuulh/{}-deployment.git",
|
"git@git.kjuulh.io:kjuulh/{}-deployment.git",
|
||||||
self.get_deploy_target()
|
self.get_deploy_target()
|
||||||
),
|
),
|
||||||
"--service",
|
"--service",
|
||||||
@@ -405,7 +405,7 @@ impl MainAction for LeptosService {
|
|||||||
"update-deployment",
|
"update-deployment",
|
||||||
"--repo",
|
"--repo",
|
||||||
&format!(
|
&format!(
|
||||||
"https://git.front.kjuulh.io/kjuulh/{}-deployment.git",
|
"https://git.kjuulh.io/kjuulh/{}-deployment.git",
|
||||||
self.get_deploy_target()
|
self.get_deploy_target()
|
||||||
),
|
),
|
||||||
"--service",
|
"--service",
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ impl MainAction for NodeService {
|
|||||||
"update-deployment",
|
"update-deployment",
|
||||||
"--repo",
|
"--repo",
|
||||||
&format!(
|
&format!(
|
||||||
"git@git.front.kjuulh.io:kjuulh/{}-deployment.git",
|
"git@git.kjuulh.io:kjuulh/{}-deployment.git",
|
||||||
self.service
|
self.service
|
||||||
),
|
),
|
||||||
"--service",
|
"--service",
|
||||||
@@ -273,7 +273,7 @@ impl MainAction for NodeService {
|
|||||||
"update-deployment",
|
"update-deployment",
|
||||||
"--repo",
|
"--repo",
|
||||||
&format!(
|
&format!(
|
||||||
"https://git.front.kjuulh.io/kjuulh/{}-deployment.git",
|
"https://git.kjuulh.io/kjuulh/{}-deployment.git",
|
||||||
self.service
|
self.service
|
||||||
),
|
),
|
||||||
"--service",
|
"--service",
|
||||||
|
|||||||
@@ -427,7 +427,7 @@ impl MainAction for RustService {
|
|||||||
"update-deployment",
|
"update-deployment",
|
||||||
"--repo",
|
"--repo",
|
||||||
&format!(
|
&format!(
|
||||||
"git@git.front.kjuulh.io:kjuulh/{}-deployment.git",
|
"git@git.kjuulh.io:kjuulh/{}-deployment.git",
|
||||||
self.bin_name
|
self.bin_name
|
||||||
),
|
),
|
||||||
"--service",
|
"--service",
|
||||||
@@ -445,7 +445,7 @@ impl MainAction for RustService {
|
|||||||
"update-deployment",
|
"update-deployment",
|
||||||
"--repo",
|
"--repo",
|
||||||
&format!(
|
&format!(
|
||||||
"https://git.front.kjuulh.io/kjuulh/{}-deployment.git",
|
"https://git.kjuulh.io/kjuulh/{}-deployment.git",
|
||||||
self.bin_name
|
self.bin_name
|
||||||
),
|
),
|
||||||
"--service",
|
"--service",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# yaml-language-server: $schema=https://git.front.kjuulh.io/kjuulh/cuddle/raw/branch/main/schemas/base.json
|
# yaml-language-server: $schema=https://git.kjuulh.io/kjuulh/cuddle/raw/branch/main/schemas/base.json
|
||||||
|
|
||||||
base: "git@git.front.kjuulh.io:kjuulh/cuddle-rust-lib-plan.git"
|
base: "git@git.kjuulh.io:kjuulh/cuddle-rust-lib-plan.git"
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
service: "dagger-components"
|
service: "dagger-components"
|
||||||
@@ -14,7 +14,7 @@ please:
|
|||||||
repository: dagger-components
|
repository: dagger-components
|
||||||
branch: main
|
branch: main
|
||||||
settings:
|
settings:
|
||||||
api_url: https://git.front.kjuulh.io
|
api_url: https://git.kjuulh.io
|
||||||
actions:
|
actions:
|
||||||
rust:
|
rust:
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ project:
|
|||||||
repository: dagger-components
|
repository: dagger-components
|
||||||
branch: main
|
branch: main
|
||||||
settings:
|
settings:
|
||||||
api_url: https://git.front.kjuulh.io
|
api_url: https://git.kjuulh.io
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ pub async fn main() -> eyre::Result<()> {
|
|||||||
branch: "main".into(),
|
branch: "main".into(),
|
||||||
cuddle_image: "kasperhermansen/cuddle-please:latest".into(),
|
cuddle_image: "kasperhermansen/cuddle-please:latest".into(),
|
||||||
server: dagger_cuddle_please::models::Server::Gitea {
|
server: dagger_cuddle_please::models::Server::Gitea {
|
||||||
url: "https://git.front.kjuulh.io".into(),
|
url: "https://git.kjuulh.io".into(),
|
||||||
user: "git".into(),
|
user: "git".into(),
|
||||||
token: std::env::var("CUDDLE_PLEASE_TOKEN")
|
token: std::env::var("CUDDLE_PLEASE_TOKEN")
|
||||||
.expect("CUDDLE_PLEASE_TOKEN to be present"),
|
.expect("CUDDLE_PLEASE_TOKEN to be present"),
|
||||||
|
|||||||
Reference in New Issue
Block a user