Repository navigation
ci(publish): notify EKS when a testing image is published - #186
Closed
WolfangAukang wants to merge 1 commit into
Closed
WolfangAukang wants to merge 1 commit into
WolfangAukang wants to merge 1 commit into
Conversation
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>
Contributor
Author
|
Superseded by #187. |
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.
Why
The EKS dev tier should roll a release when it is published, the same moment the
simplerisk-customers-cdktesting customers roll from this workflow'spromotejob. Today EKS dev waits for someone to merge the release PR insimplerisk/kubernetesby hand: for 20261105-001 the image was published at 12:46 UTC and dev was merged at 15:57.What
publish-testing.ymlgets anotify-eksjob. It sends atesting-image-publishedrepository_dispatchwith{version, tag}tosimplerisk/kubernetes, which merges its release PR and rolls dev (simplerisk/kubernetes#159).promote: it needsscan-minimal, so a release that fails Grype is never announced, and it is skipped on a dry run.simplerisk/kuberneteswithcontents: write(whatrepository_dispatchneeds).actions/create-github-app-tokenis pinned to the v3.3.0 commit. The job itself haspermissions: {}.EKS_DISPATCH_CLIENT_IDthe job logs a notice and does nothing.Before it does anything
In the
testingEnvironment (which only thetestingbranch can use):EKS_DISPATCH_CLIENT_ID: the App's client idEKS_DISPATCH_PRIVATE_KEY: the App's private keyThe App is installed only on
simplerisk/kubernetes, with Repository permissions → Contents: Read and write.Testing
notify-ekssucceeds and that theAuto-merge dev release PRrun insimplerisk/kubernetesstarts.🤖 Generated with Claude Code