public async Task <int> RunDeployment() { ConsoleHelpers.PrintLogo(); var(configuration, rawConfigContents) = GetConfiguration(); var currentAppVersion = await applicationsClient.GetVersionAsync( new ApplicationVersionQuery { ApplicationName = configuration.Name } ); var deploymentVersion = (currentAppVersion.Version ?? 0) + 1; var services = await ProcessServices(configuration, deploymentVersion); output.Info("Contacting the clud server to kick off the deployment..."); var response = await deploymentsClient.DeployApplicationAsync(new DeployCommand { Name = configuration.Name.ToLowerInvariant(), Owner = configuration.Owner, Description = configuration.Description, Repository = configuration.Repository, EntryPoint = configuration.EntryPoint, ConfigurationYaml = rawConfigContents, Version = deploymentVersion, CommitHash = await GitHelpers.CommitHash(Directory.GetParent(args.Config).FullName), Services = { services }, }); LogSuccessfulDeployment(response); return(0); }