By simonShark
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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
2 years later, I ran into the same problem, here what I did:
In my case, I was using gitlab previously, at my own user my-yser/repo-name and I moved the repository to org-name/repo-name.
I guess I’m lucky that the authentication Digital Ocean did to connect with my-user/repo-name could also be used to establish connection with org-name/repo-name
Everything worked just fine afterwards.
Hope it helps someone in the future.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.