feat: add cockroach db
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-02-22 18:26:53 +01:00
parent b4af46aa23
commit ff6cc941d8
13 changed files with 515 additions and 106 deletions

View File

@@ -7,6 +7,13 @@ pub struct CommitArtifact {
pub upload_id: UploadArtifactID,
}
#[derive(Clone, Debug)]
pub struct Release {
pub app: String,
pub branch: String,
pub cluster: String,
}
#[derive(Debug, Clone)]
pub struct ArtifactID(uuid::Uuid);
@@ -52,6 +59,12 @@ impl From<uuid::Uuid> for UploadArtifactID {
}
}
impl From<ArtifactID> for uuid::Uuid {
fn from(value: ArtifactID) -> Self {
value.0
}
}
impl TryFrom<String> for UploadArtifactID {
type Error = anyhow::Error;