By zlaya31
Hi,
I have issue deploying DOCR on app platform with github actions.
I successfully public image to DOCR and then in next step when I try to deploy that image to ma app platform I got this error:
"[{ \"name\": \"web\", \"repository\": \"registry.digitalocean.com/gamio/gamio-api\", \"tag\": \"52b4fb8\" } ]" "gamio-api" "***"
all components with following names were not found in your deployed app spec
I followed guiedlines on app action
here is mine github action workflow part that comunicates with digital ocean:
- name: Generate GITHUB_SHA
id: github-sha
shell: bash
run: |
SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-7)
echo "::set-output name=sha::$SHORT_SHA"
- name: Build container image
run: docker build . -t registry.digitalocean.com/gamio/gamio-api:${{steps.github-sha.outputs.sha}}
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- name: Log in to DigitalOcean Container Registry with short-lived credentials
run: doctl registry login --expiry-seconds 600
- name: Publish Image to Digital Ocean Container Registry
run: docker push registry.digitalocean.com/gamio/gamio-api:${{steps.github-sha.outputs.sha}}
- name: DigitalOcean App Platform deployment
uses: digitalocean/app_action@main
with:
app_name: gamio-api
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
images: '[{
"name": "web",
"repository": "registry.digitalocean.com/gamio/gamio-api",
"tag": "${{steps.github-sha.outputs.sha}}"
}
]'
my app on digital ocean have name gamio-api and also a web component that should be deployed with this action is named gamio-api
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!
Hey!
The error message “all components with following names were not found in your deployed app spec” indicates that the app_action couldn’t find a matching component named “web” in your App Platform’s configuration. This leads to a deployment failure.
Possible Causes:
app_action might not be able to locate or read your app specification file (usually named .do/app.yaml).Troubleshooting Steps:
Verify Component Names:
images section of your GitHub Action.App Spec Location and Structure:
app.yaml) is located in the .do directory at the root of your project repository.app.yaml with a component named “web”:YAML
name: my-app # You can change this name
services:
- name: web # This name must match the value in your GitHub Action
image: registry.digitalocean.com/my-repo/my-image:latest
# Other component settings
Debug with doctl:
doctl CLI.doctl apps get <your-app-id> -o yaml to retrieve and examine the current app configuration directly from DigitalOcean.Additional Tips:
app_action for deployment. Compare your setup against a working example.If the problem persists, please provide the following for more assistance:
app.yaml) Contents: Your app configuration file.Best,
Bobby
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.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.