Open
Description
When I try to create a new repo with deploy key and try to print the res.data
I get the following error. Any clue what I am doing wrong here (sorry to put this in issue)? When I add in 'git_repository'
I get an error saying its unexpected.
Error:
{'message': 'Validation failed.', 'errors': {'git_repository': ['This field is required.'], 'git_branch': ['This field is required.'], 'build_pack': ['This field is required.']}}
Code (I commented out the last 3 args to the model):
priv_repo_model = ApplicationPublicPrivatePvtKeyGHModelCreate(
name="coolify_app",
project_uuid=project_uuid,
server_uuid=server_uuid,
environment_name="production",
ports_exposes="3000",
instant_deploy=True,
private_key_uuid=self.key_uuid,
#git_repository=source_url,
#git_branch="main",
#build_pack=COOLIFY_BUILD_PACKS.dockerfile
)
res = self.coolify_client.applications.create(priv_repo_model)
print(res.data)
Metadata
Metadata
Assignees
Labels
No labels