fix: deployment key based works

This commit is contained in:
Andras Bacsai
2023-07-05 22:10:10 +02:00
parent 1342634907
commit 4f98cef7cb
4 changed files with 9 additions and 5 deletions

View File

@@ -195,6 +195,9 @@ class Application extends BaseModel
}
public function deploymentType()
{
if (data_get($this, 'private_key_id')) {
return 'deploy_key';
}
if (data_get($this, 'source')) {
return 'source';
}
@@ -203,4 +206,4 @@ class Application extends BaseModel
}
throw new \Exception('No deployment type found');
}
}
}