I set up my app platform to auto deploy from a github repo, then I changed the repo name in github, but I can’t find a way to update it on app platform. Any pointers?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

Making this change on an existing app requires leveraging the doctl CLI utility (docs), or API. You can download an existing copy of your app’s spec file from the Settings tab of the App’s control panel. From there, update the repo under github section in the App Spec file. You can update the existing app with doctl app update APP_ID --spec=./my-app-spec-file.yaml, replacing APP_ID with the ID of your app (see doctl app list).

Hello there,
For anyone facing this issue, I’ve used an extra step in order to achieve the repo update. In my case, I’ve granted DO access to a selected Github repo, So I’ve received a github app permission issue when uploading the updated app’s spec file.
In order to force the update, I’ve revoked the app access from Github. I was able then to reconnect my app and specifying my new repo.