Ejemplo n.º 1
0
        public async Task <ActionResult <DeploymentDto> > CreateDeployment([FromBody] CreateDeploymentDto dto)
        {
            var release = await _releaseService.GetReleaseById(dto.ReleaseId);

            if (release == null)
            {
                return(NotFound());
            }

            var deployment = await _releaseDeploymentProcessor.RunAsync(release);

            return(Ok(new DeploymentDto
            {
                Version = deployment.Release.Version,
                DeployedOn = deployment.DeployedOn,
                Id = deployment.Id,
                Status = deployment.Status
            }));
        }
Ejemplo n.º 2
0
        public ActionResult ReadOnly(int id)
        {
            Release release = _ReleaseService.GetReleaseById(id);

            return(PartialView(release));
        }