Skip to content

ci(publish): notify EKS when a testing image is published - #186

Closed
WolfangAukang wants to merge 1 commit into
testingfrom
FEATURE-notify-eks-on-testing-publish
Closed

WolfangAukang wants to merge 1 commit into
testingfrom
FEATURE-notify-eks-on-testing-publish

Conversation

@WolfangAukang

Copy link
Copy Markdown
Contributor

Why

The EKS dev tier should roll a release when it is published, the same moment the simplerisk-customers-cdk testing customers roll from this workflow's promote job. Today EKS dev waits for someone to merge the release PR in simplerisk/kubernetes by hand: for 20261105-001 the image was published at 12:46 UTC and dev was merged at 15:57.

What

publish-testing.yml gets a notify-eks job. It sends a testing-image-published repository_dispatch with {version, tag} to simplerisk/kubernetes, which merges its release PR and rolls dev (simplerisk/kubernetes#159).

  • Same gate as promote: it needs scan-minimal, so a release that fails Grype is never announced, and it is skipped on a dry run.
  • Token: a GitHub App installation token minted per run, limited to simplerisk/kubernetes with contents: write (what repository_dispatch needs). actions/create-github-app-token is pinned to the v3.3.0 commit. The job itself has permissions: {}.
  • No ARNs or account ids reach this public repo's logs. The payload is only the version and the tag.
  • Safe to merge before the App exists: without EKS_DISPATCH_CLIENT_ID the job logs a notice and does nothing.

Before it does anything

In the testing Environment (which only the testing branch can use):

  • variable EKS_DISPATCH_CLIENT_ID: the App's client id
  • secret EKS_DISPATCH_PRIVATE_KEY: the App's private key

The App is installed only on simplerisk/kubernetes, with Repository permissions → Contents: Read and write.

Testing

  • actionlint is clean.
  • Not yet run: the first real publish after the App is configured. Check that notify-eks succeeds and that the Auto-merge dev release PR run in simplerisk/kubernetes starts.

🤖 Generated with Claude Code

After the Grype gate that already guards the customers-cdk promote, send a
testing-image-published repository_dispatch to simplerisk/kubernetes, where
the EKS dev tier merges its release PR and rolls. The token comes from a
GitHub App scoped to that one repo with contents:write; the job is a no-op
until the testing environment has EKS_DISPATCH_CLIENT_ID.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@WolfangAukang

Copy link
Copy Markdown
Contributor Author

Superseded by #187.

@WolfangAukang
WolfangAukang deleted the FEATURE-notify-eks-on-testing-publish branch November 18, 2026 19:28
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