Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lagoon deploy results improvement #30

Closed
jordotech opened this issue Nov 20, 2019 · 3 comments
Closed

lagoon deploy results improvement #30

jordotech opened this issue Nov 20, 2019 · 3 comments
Labels
enhancement New feature or request lagoon-upstream Issue needs to be raised in Lagoon

Comments

@jordotech
Copy link

Is your feature request related to a problem? Please describe.
running the lagoon deploy command says success immediately without knowing the results of the deployment

Describe the solution you'd like
I would like to watch the deployment logs (the same that are viewable in lagoon UI) live as they are happening. Maybe a --watch flag?

Additional context
I ran a deployment with the cli and it said success. The deployment failed however.

@shreddedbacon
Copy link
Member

Currently, there is no way to stream the log output live from lagoon :(

At the moment, the best that can be done is to start a deployment, then poll the api for the status of the deployment until it completes. Once complete, it could dump the build log in one hit.

@jordotech
Copy link
Author

That'll work, as long as you don't have to leave the terminal to see what actually happened

@shreddedbacon shreddedbacon added the lagoon-upstream Issue needs to be raised in Lagoon label Feb 25, 2020
@shreddedbacon shreddedbacon added the enhancement New feature or request label Mar 9, 2020
@shreddedbacon
Copy link
Member

#294 changes the lagoon get deployment command to accept the build name. This hasn't been released yet, but it will be soon.

This will return the build after it has been triggered, you could after triggering the build wrap it in a loop that checks the output of the get deployment for the status then

BUILDNAME=$(lagoon deploy latest --project $project --environment $environment --force --returnData)
lagoon get deployment --project $project --environment $environment --name $BUILDNAME

get deployment also has the --logs flag to return the logs, but doing this repeatedly is kind of pointless because they only update when there are periodic status changes.

I'm going to close this issue out, as the release that contains this is being bundled at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lagoon-upstream Issue needs to be raised in Lagoon
Projects
None yet
Development

No branches or pull requests

2 participants