You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I am using a deployment service (Laravel Forge) and I want to automatically push production updates back to a protected branch before I deploy new updates. I am encountering this issue though and I'm not sure what the recommended approach would be. I had this working fine in Gitlab with a protect branch and the same SSH deploy key. (write access is enabled in Gitea for this branch.)
remote: Gitea: protected branch master can not be pushed to
What is the recommend approach with Gitea for pushing updates from production back to the repo on a protected brach?
The text was updated successfully, but these errors were encountered:
I solved this by adding my individual key (as organization and repository owner) to the server and setting .ssh/config to use that key when pushing back to the Gitea server.
The additional option sounds like a great idea though @zeripath. This would enable more fine grained control.
Add an option to protected branches to add writing deploy keys to the whitelist for pushing.
Please note this is technically a breaking change: previously if the owner of a repository was on the whitelist then any writing deploy key was effectively on the whitelist. This option will now need to be set if that is desired.
Closes#8472
Details:
* Allow Protected Branches to Whitelist Deploy Keys
* Add migration
* Ensure that IsDeployKey is set to false on the http pushes
* add not null default false
[x]
):So I am using a deployment service (Laravel Forge) and I want to automatically push production updates back to a protected branch before I deploy new updates. I am encountering this issue though and I'm not sure what the recommended approach would be. I had this working fine in Gitlab with a protect branch and the same SSH deploy key. (write access is enabled in Gitea for this branch.)
What is the recommend approach with Gitea for pushing updates from production back to the repo on a protected brach?
The text was updated successfully, but these errors were encountered: