I’m setting up a production environment using DigitalOcean Apps and I was wondering if it was possible to target a git tag or specific commit in the spec?

Something like so, since tags are branch-like when considering git.

    branch: v1.0.4
    repo: MyOrg/myrepo

But when trying I get a

Error: PUT https://api.digitalocean.com/v2/apps/[app-id]: 404 Git branch not found

Is there any way (even undocumented) to target a tag (or if possible, a specific commit on a branch, like main@abcdef94739)?


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
1 answer

Hello @otak

Unfortunately, it’s not possible to deploy based on the specific commit or git tags.

I encourage you to share your thoughts about this on our ideas page:

We’re constantly looking to improve all aspects of our service and welcome any other ideas or feedback you have! By sharing your thoughts there, it helps us to better prioritize working on the features that you feel need more attention.



  • Hello!

    Thank you for your reply.

    From my understanding of the technical matters behind, it’s not possible for the fact that automatic rollback is a feature, and for that to work you need to get the git history of the current “branch”. On tags or commits, you end up in a detached HEAD state and have no access to history in a simple manner, making the feature more complicated to deal with.

    There might be ways to go around it, I’ll explore a bit on if it’s feasible at all and how to do it and post a suggestion with a repro on how to go around it.


    Have a great day,

    • Hello Mathieu,

      Thank you and surely you can post your suggestion on the Ideas page. Our team will review it and will implement it (if feasible).

      Have a great day,