feat: swap for - instead
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
a4092639d1
commit
91d0c2347c
@ -1,6 +1,7 @@
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
|
use cuddle_ci::cuddle_file::CuddleFile;
|
||||||
use cuddle_ci::cuddle_releaser::CuddleReleaser;
|
use cuddle_ci::cuddle_releaser::CuddleReleaser;
|
||||||
use cuddle_ci::rust_service::architecture::{Architecture, Os};
|
use cuddle_ci::rust_service::architecture::{Architecture, Os};
|
||||||
use cuddle_ci::rust_service::RustService;
|
use cuddle_ci::rust_service::RustService;
|
||||||
@ -11,6 +12,7 @@ use tokio::sync::Mutex;
|
|||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> eyre::Result<()> {
|
async fn main() -> eyre::Result<()> {
|
||||||
let client = dagger_sdk::connect().await?;
|
let client = dagger_sdk::connect().await?;
|
||||||
|
let cuddle_file = CuddleFile::from_cuddle_file().await?;
|
||||||
|
|
||||||
let service = RustService::from(client.clone())
|
let service = RustService::from(client.clone())
|
||||||
.with_arch(Architecture::Amd64)
|
.with_arch(Architecture::Amd64)
|
||||||
@ -18,9 +20,9 @@ async fn main() -> eyre::Result<()> {
|
|||||||
.with_apt(&["libssl-dev", "libz-dev", "libpq-dev"])
|
.with_apt(&["libssl-dev", "libz-dev", "libpq-dev"])
|
||||||
.with_apt_release(&["libssl-dev", "libz-dev", "libpq-dev"])
|
.with_apt_release(&["libssl-dev", "libz-dev", "libpq-dev"])
|
||||||
.with_apt_ca_certificates()
|
.with_apt_ca_certificates()
|
||||||
.with_crates(["ci", "crates/*"])
|
.with_crates(["crates/*"])
|
||||||
.with_mold("2.3.3")
|
.with_mold("2.3.3")
|
||||||
.with_bin_name("cuddle-rust-service-plan")
|
.with_bin_name(cuddle_file.vars.service)
|
||||||
.with_deployment(false)
|
.with_deployment(false)
|
||||||
.to_owned();
|
.to_owned();
|
||||||
|
|
||||||
|
@ -13,8 +13,8 @@ spec:
|
|||||||
image: "deployment:latest"
|
image: "deployment:latest"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
name: external_http
|
name: external-http
|
||||||
- containerPort: 3001
|
- containerPort: 3001
|
||||||
name: internal_http
|
name: internal-http
|
||||||
- containerPort: 3002
|
- containerPort: 3002
|
||||||
name: internal_grpc
|
name: internal-grpc
|
||||||
|
@ -5,13 +5,13 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
ports:
|
ports:
|
||||||
- name: external_http
|
- name: external-http
|
||||||
port: 3000
|
port: 3000
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
- name: internal_http
|
- name: internal-http
|
||||||
port: 3001
|
port: 3001
|
||||||
targetPort: 3001
|
targetPort: 3001
|
||||||
- name: internal_grpc
|
- name: internal-grpc
|
||||||
port: 3002
|
port: 3002
|
||||||
targetPort: 3002
|
targetPort: 3002
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user