Im trying to deploy my app from Gitlab CI, here is my
"Deploy to DigitalOcean": image: digitalocean/doctl:latest stage: deploy needs: - job: "Test Docker build" script: - doctl auth init - /app/doctl apps create-deployment XXX only: - master
Also I added the
DIGITALOCEAN_ACCESS_TOKEN variable with my personal token.
But I got an error
``Successfully extracted cache ``Executing "step_script" stage of the job script 00:00 ``Using docker image sha256:16287ffaf3b998b10c7348803f2372d99b9daadc1f5ded9aab957f6b2b34a7e3 for digitalocean/doctl:latest with digest digitalocean/doctl@sha256:d612c781afeb2720393e32312ef19af545b5c69b933a02bcd83e3e2bda874802 ... ``Error: unknown command "sh" for "doctl" ``Run 'doctl --help' for usage. ``Cleaning up project directory and file based variables 00:01 ``ERROR: Job failed: exit code 255
How can I trigger DigitalOcean from my CI pipeline? I don’t want to use
deploy_on_push feature, because it ignores my pipelines and deploy app even when my CI/CD is red.
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.