Publish app deployment record in Laconic registry on creating new deployments (#62)

* Publish record in laconic registry on creating project and deployment

* Refactor publish record method

* Set name for the published record

* Publish application deployment request

* Add README for publishing record

* Add await in add project resolver method

* Update meta data for deployment request record

* Remove title field from deployment entity

* Refactor service and registry class for publishing record

* Add record data to project and deployment entity

* Set record id and data as nullable in project entity

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
This commit is contained in:
2024-02-12 11:34:01 +05:30
committed by GitHub
co-authored by neeraj
parent bd6a6b330c
commit a58b9b255e
20 changed files with 1646 additions and 81 deletions
@@ -1,7 +1,6 @@
[
{
"id": 1,
"title": "nextjs-boilerplate-9t44zbky4dg-bygideon-projects",
"status": "Building",
"isProduction": true,
"isCurrent": false,
@@ -15,7 +14,6 @@
},
{
"id": 2,
"title": "nextjs-boilerplate-9232dwky4dg-bygideon-projects",
"status": "Ready",
"isProduction": false,
"isCurrent": false,
@@ -29,7 +27,6 @@
},
{
"id": 3,
"title": "nextjs-boilerplate-9saa22y4dg-bygideon-projects",
"status": "Error",
"isProduction": false,
"isCurrent": false,
@@ -26,6 +26,8 @@ const ProjectRepoCard: React.FC<ProjectRepoCardProps> = ({ repository }) => {
name: `${repository.owner!.login}-${repository.name}`,
prodBranch: repository.default_branch!,
repository: repository.full_name,
// TODO: Compute template from repo
template: 'webapp',
});
navigate(`import?projectId=${addProject.id}`);
@@ -52,6 +52,8 @@ const CreateRepo = () => {
name: `${gitRepo.data.owner!.login}-${gitRepo.data.name}`,
prodBranch: gitRepo.data.default_branch ?? 'main',
repository: gitRepo.data.full_name,
// TODO: Set selected template
template: 'webapp',
});
navigate(