fix: deployment key based works
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user