Question

Docker image deployment fails after hanging

Hello,

I’m trying to deploy a docker image to an App using the official GitHub Action pipeline. I have setup my wokflow to create or update a new app, the push the image. Here is my step:

  deploy:
    name: Deploy
    needs: build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Deploy
        uses: digitalocean/app_action/deploy@v2
        env:
          DIGEST: ${{ steps.push.outputs.digest }}
          GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

And here is my app.yaml:

name: xxx
region: ams

services:
  - name: xxx
    image:
      registry_type: GHCR
      registry: me
      repository: xxx
      digest: ${DIGEST}
      registry_credentials: 'me:${GHCR_TOKEN}'

envs:
  # -... 

The steps and pipeline seems to push correcly the image to my app and start the container. However, when the container starts, the deployment still thinks it’s deploying, and then fails due to a timeout.

image alt text

How can I tell the deployment that the container has started and the deployment is successfull ? Am I missing a step ?

Thanks


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
March 17, 2025
Accepted Answer

Hi there,

It sounds like you just need to make sure that you have configured a proper health-check:

https://docs.digitalocean.com/products/app-platform/how-to/manage-health-checks/

That way you will make sure that the App Platform knows that your application is running successfully.

Let me know how it goes!

- Bobby

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.