Question

CI/CD pipeline for Digital Ocean VPS/Droplet

Posted March 23, 2020 2.4k views
DigitalOceanCI/CDUbuntu 18.04

Hi, I have my own droplet on Digital ocean that serves as my portfolio/personal website. I have the source code hosted at my github.com account.

I would like to make a CI-CD pipeline on Azure DevOps, that builds the codebase on Azure (CI) upon a local “git push” command. If successfully built, then it creates a release in the CD pipeline and deploys the code to my website server here on Digital ocean. Thus, I would not need to use the linux SCP commands to transfer my local code to the server anymore with this automated pipeline.

Can anyone point me in the right direction to complete this? any articles are tips? I won’t be deploying any .jar files or anything, its mostly a static HTML/CSS website, so I just want that to get built and deployed to my website server after I run a “git push” command locally in my terminal or IDE…

Can anyone help?

edited by MattIPv4

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.

×
2 answers

Many IDEs have this sort of thing already figure out. What IDE are you using?

I’ve never tried it my self, but both PhpStorm and WebStorm (for example) have a deployment section in their settings. Are you able to build locally or do you explicitly need a CI?

I just came across your question and figured I just finished up reading which this Deploying from Azure DevOps to DigialOcean which was quite helpful.

Several months late :-/ HTH

Now I’m curious about database deployments for MariaDB/MySQL, PostgreSQL and such.

Submit an Answer