Digitalocean github app action error deployment

followed the steps [from](https://from but github action failed and getting this error triggering deploy: unable to create-deployment for app: exit status 1

any idea?

my app spec at .do/app.yaml

name: testapp
region: sgp
- git:
    branch: main
  http_port: 8080
  instance_count: 1
  instance_size_slug: basic-xxs
  name: web
  - path: /

and I tested it through app platform set up and I can create the app successfully.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
August 29, 2023

Hi there,

There are a few things that I could suggest here:

  1. Ensure that you have set the required GitHub secrets (like DIGITALOCEAN_ACCESS_TOKEN) and they are correct. Tokens should have appropriate permissions.

  2. Check the logs of the GitHub Action run. They might contain more details about what exactly failed. Feel free to share thos errors here in case that there are any.

  3. Ensure there are no syntax errors in your .do/app.yaml file. Ensure that the repository and branch in the app spec match exactly with the repository and branch you are pushing to.

  4. Try to deploy manually using the doctl command line, replicating what the GitHub Action does:

    doctl apps create --spec .do/app.yaml
    • If this fails, you’ll have a clearer error message directly from doctl and the context of your local machine. If it succeeds, the problem lies somewhere in the GitHub Action or its environment.

Also here is an example repository that you could use as a blueprint:

This repository has an example .do/app.yaml file and an example GitHub workflow file too.

Let me know how it goes!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel