Function create_deployment

Source
pub async fn create_deployment(
    pool: &Pool<MySql>,
    app_id: i64,
    build_id: i64,
    version: &str,
    deployment_strategy: &str,
    previous_deployment_id: Option<i64>,
    canary_percentage: Option<i64>,
    environment_variables: Option<Value>,
    annotations: Option<Value>,
    labels: Option<Value>,
    created_by: Option<i64>,
) -> Result<Deployment>
Expand description

Creates a new deployment in the database.