I was looking at the documentation on this readme on how to deploy an app on digital ocean from DOCR using github actions, however, I still can not get it to work.
These are the two main configurations that I have tried and their results:
- name: Deploy digital ocean app for server
uses: digitalocean/app_action@main
with:
app_name: jujuserver
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
images: '[{
"name": "jujuserver",
"image": {
"registry_type": "DOCR",
"repository": "jujuserver",
"tag": ""${{steps.github-sha.outputs.sha}}""
}
}]'
Results in correct run of github actions and deploys the App, but does not update the code running in it with the new code in github. This also happens if I use the lates tag instead.
The other one is, following the docs:
- name: Deploy digital ocean app for server
uses: digitalocean/app_action@main
with:
app_name: jujuserver
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
images: '[{
"name": "jujuserver",
"image": {
"registry_type": "DOCR",
"repository": "registry.digitalocean.com/juju/jujuserver",
"tag": ""${{steps.github-sha.outputs.sha}}""
}
}]'
This results in the following failure from github actions and no deployment is made, but I do not know why it is failing:
Run digitalocean/app_action@main
with:
app_name: jujuserver
token: ***
images: [{ "name": "jujuserver", "image": { "registry_type": "DOCKER_HUB", "registry": "jujuserver", "repository": "registry.digitalocean.com/juju/jujuserver", "tag": "" } }]
/usr/bin/docker run --name a9e6ecdd72143ec401d87dd0e5764680896_d7bc83 --label 372a9e --workdir /github/workspace --rm -e INPUT_APP_NAME -e INPUT_TOKEN -e INPUT_IMAGES -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/project-theweebteam/project-theweebteam":"/github/workspace" 372a9e:6ecdd72143ec401d87dd0e5764680896 "[{ \"name\": \"jujuserver\", \"image\": { \"registry_type\": \"DOCKER_HUB\", \"registry\": \"jujuserver\", \"repository\": \"registry.digitalocean.com/juju/jujuserver\", \"tag\": \"\" } }]" "jujuserver" "***"
2022/03/29 06:06:05 updating app spec: unable to update app: exit status 1
doctl apps update 7d9bdad8-53ba-4ad1-9c6a-60d59a59599a --spec /tmp/_do_app_084026610.yaml
Does anyone have a clue as to why this may be?
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!
This comment has been deleted
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.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.