func deploy(application *model.Application, compose *model.Compose) (string, error) { var err error fmt.Println("=====> Building ...") if err = compose.Build(); err != nil { return "", err } fmt.Println("=====> Pulling ...") if err = compose.Pull(); err != nil { return "", err } fmt.Println("=====> Deploying ...") if err = compose.Up(); err != nil { return "", err } webContainerID, err := compose.GetContainerID("web") if err != nil { return "", err } return webContainerID, nil }