adhocteam / nytimes-library

A collaborative documentation site, powered by Google Docs.
https://nyt-library-demo.herokuapp.com/
Apache License 2.0
1 stars 1 forks source link

Deploy new image versions via kustomize manifest edits instead of image updater #98

Closed ahinh43 closed 1 year ago

ahinh43 commented 1 year ago

Closes #97

Proposed Changes

Concerns

Currently the native github actions token doesn't allow itself to push commits into protected branches. There is no "actor" that we could add to allow for a bypass of this protection rule. Solutions range from either temporarily disabling protection rules or calling API actions to create and merge PRs instantly which are all not very clean and undesired. To get around this limitation right now, we're using the Infrastructure bot user (the old Jenkins user within Ad Hoc) via a PAT with very limited access to perform this push action. This allows us to add the Jenkins user as a user that can bypass the branch restriction but with the caveat that we're using a persistent access token to perform this job.

https://github.com/community/community/discussions/13836

Let me know if this is worth the token or if we should find another way to maintain our deployments.