defang
defang copied to clipboard
Historical Build Logs
Piggy-backing on https://github.com/defang-io/defang/issues/169, if that feature does get developed, it would be really useful to get the logs for a given build. Imagine a workflow something like this:
First I would get my build history.
defang cd history
| etag | service | status | started | completed | build time |
|---|---|---|---|---|---|
| fjd8s038 | ui | in progress | 2024-03-06T20:50:40Z | - | 2m32s |
| 192h49jfds | ui | failed | 2024-03-06T19:50:40Z | 2024-03-06T19:54:40Z | 4m0s |
| 792h39jfds | ui | failed | 2024-03-06T19:50:40Z | 2024-03-06T19:52:45Z | 2m5s |
Then I might want to get the logs for a failed build:
defang cd logs --etag 792h39jfds
BYOC first.
For Playground this depends on DefangLabs/defang#459
For BYOC, we'd have to save previous deployments, not just the latest, and be able to fetch it by etag