Skip to content

Surface deployed endpoints on the GitHub run summary - #660

Open
lionello wants to merge 1 commit into
mainfrom
lio/deploy-summary-endpoint
Open

Surface deployed endpoints on the GitHub run summary#660
lionello wants to merge 1 commit into
mainfrom
lio/deploy-summary-endpoint

Conversation

@lionello

Copy link
Copy Markdown
Member

What

Makes the deployed app's endpoints front and center on the GitHub Actions run, instead of buried in the collapsed action log.

Two changes to the deploy workflow template:

  1. environment.url — wired to a new endpoint output from the Defang action, so GitHub shows a clickable "View deployment" link on the run page, the Environments tab, and the repo sidebar.
  2. summary: true — the action writes a defang services table (public endpoints as links, internal services as code) to the job Summary tab.

The old separate command: services step is removed — its output only landed in the collapsed log, and the action now owns this.

Dependency

Requires the summary input and endpoint output to land in DefangLabs/defang-github-action (companion PR) and the v2 tag to move. Until then this degrades gracefully: GitHub logs an "unknown input" warning and the environment URL stays blank — nothing breaks.

Notes

  • Almost all the logic lives in the action (generic, reusable by every Defang user). The only sample-specific bits are the summary: flag and the environment.url wiring — environment is a job-level key a composite action can't set.
  • summary is disabled on down teardowns.
  • Worth confirming on the first real workflow_dispatch run: that environment.url correctly resolves steps.deploy.outputs.endpoint.

🤖 Generated with Claude Code

Wire the deploy step's `environment.url` to a new `endpoint` output from
the Defang action, and enable `summary: true` so the action writes a
services table to the job summary. Replaces the separate `services` step,
whose output was buried in the collapsed action log.

Depends on the `summary` input / `endpoint` output landing in
DefangLabs/defang-github-action (degrades gracefully until then).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Comment thread templates/defang.yaml
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.

2 participants