Skip to content

Conversation

@smlx
Copy link
Member

@smlx smlx commented Feb 11, 2026

This change adds support for build and task logs and relies on uselagoon/lagoon-ssh-portal#570.

The logs command gets two new flags. The idea is that you can specify --task to get logs from all running tasks, or --task=name if you know the name.

  -b, --build string[="all_builds"]   specify build logs, with an optional specific build name
  -t, --task string[="all_tasks"]     specify task logs, with an optional specific task name

The deploy subcommands also gets new flags --follow that stream deploy logs until the deployment completes.

      --follow                 Follow the deploy logs

I have no idea if this is a good developer UX: feedback requested.

I have tested this manually using the deploy latest subcommand, but have not actually tested the other subcommands because I don't have a good test environment for them. Please let me know if they are broken! In particular, the code relies on the resultData.Result being the name of the build. This holds for deploy latest, but I don't know if it holds for other subcommands?

# tested and working
go run . logs -p test-project -e main --build
go run . logs -p test-project -e main --build=lagoon-build-123xyz
go run . logs -p test-project -e main --task
go run . logs -p test-project -e main --task=lagoon-task-123xyz
go run . deploy latest -p test-project -e main --follow --force

# untested - please test!
go run . deploy branch -p test-project -e main --follow --force
go run . deploy promote -p test-project -e main --follow --force
go run . deploy pullrequest -p test-project -e main --follow --force

Add new flags to the logs command:

* --build get build logs for any running builds
* --task get task logs for any running tasks
@smlx smlx changed the title build logs Implement build/deploy log support Feb 11, 2026
@smlx smlx marked this pull request as ready for review February 11, 2026 01:37
@shreddedbacon shreddedbacon self-requested a review February 11, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant