Skip to content

feat(ci): notify orchestrator after image pushes for near-instant catalog sync#25

Merged
shekohex merged 2 commits intomainfrom
ci/notify-orchestrator-on-push
Mar 10, 2026
Merged

feat(ci): notify orchestrator after image pushes for near-instant catalog sync#25
shekohex merged 2 commits intomainfrom
ci/notify-orchestrator-on-push

Conversation

@Tjemmmic
Copy link
Copy Markdown
Contributor

Summary

  • Adds a notify-orchestrator job that calls the orchestrator's
    POST /catalog/notify-update endpoint after all images are built and pushed
  • Reduces image staleness window from ~20 minutes (periodic sync) to ~30 seconds
    (next host-agent heartbeat)
  • Gracefully skips notification if secrets aren't configured yet

Details

The job runs after all leaf build jobs complete and only fires if at least one
build succeeded. Uses always() && !cancelled() so it isn't blocked by skipped
jobs (e.g. empty dynamic matrices).

Required secrets

Before this has any effect, add these to the repo (Settings → Secrets → Actions):

  • ORCHESTRATOR_ADMIN_URL — admin API base URL (port 4096)
  • ORCHESTRATOR_ADMIN_API_KEY — the orchestrator's admin API key

@Tjemmmic Tjemmmic requested a review from shekohex March 10, 2026 03:31
@shekohex
Copy link
Copy Markdown
Contributor

@Tjemmmic Have you added these secrets to the repo?

@shekohex
Copy link
Copy Markdown
Contributor

Ok, I did that.

@shekohex shekohex merged commit f12d660 into main Mar 10, 2026
@shekohex shekohex deleted the ci/notify-orchestrator-on-push branch March 10, 2026 15:22
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