8000 Issue creating public/private repo with deploy key · Issue #52 · gbbocchini/coolipy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Issue creating public/private repo with deploy key #52
Open
@scott-williams-2002

Description

@scott-williams-2002

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0