argocd-pr-env-deploy: dispatch the env's mindshub_services stack - #68
Merged
Merged
Conversation
Right after `argocd app set`, dispatch mindsdb/mindshub_services' pr-env-stacks.yml for this env so the SAM stack builds while the env rolls out, for every anchor, with no per-repo job. Best-effort: a refused dispatch is a warning and the workflow's schedule catches up. mindshub_services' own CI calls the workflow directly, so it is skipped. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
mindshub_services is now a PR-env anchor. When it is the anchor, set revisions.mindshub_services to the PR head and skip the ECR check, the same treatment its `Deploys:` links already get. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> (cherry picked from commit 818844c)
mindsdb-devops
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
After
argocd app setand beforeargocd app wait, the action POSTs aworkflow_dispatchformindsdb/mindshub_services/.github/workflows/pr-env-stacks.ymlwithonly=<parent app>. The env's SAM stack then builds while the env rolls out, for every anchor repo, with nothing to add per repo.Best-effort: a refused dispatch prints a warning and the reconciler's 10-minute schedule deploys the stack instead. Skipped when the anchor is mindshub_services itself (its CI calls the workflow locally so the workflow under test is the one that runs).
New optional input
stacks-dispatch-token, defaulting togh-token. The dispatch needsactions: writeon mindshub_services; ifGH_PULL_REQUEST_READ_TOKENis read-only, pass a token that has it.Depends on
mindsdb/mindshub_services#227 reaching
main(the dispatched workflow must be on the default branch). Until then every dispatch is refused and warns.🤖 Generated with Claude Code
Also in this PR
The anchor-side revision-only handling (
is_revision_only_repo): #67 merged before that commit reached its branch, somainstill fails a mindshub_services anchor on the own-image ECR check (seen on mindshub_services#227:ECR image mindsdb-mindshub-services:development-... not found). Cherry-picked here.