Report this

What is the reason for this report?

Docker image deployment fails after hanging

Posted on March 15, 2025

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



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!

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.
0

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

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.