Setup Bitbucket Pipelines with Digital Ocean Droplets

  1. Setup Droplet
  2. Create SSH key
  3. Add Public SSH key to Digital Ocean (this means you can skip step 6)
  4. Add Private SSH key to Bitbucket Environment Variables (base64 encode it)
  5. ssh copy key to server via command line
  6. Add servers Public SSH key to your repository known_hosts file
  7. Create your bitbucket-pipelines.yml file with codes below (you can create this from inside bitbucket too)
  8. Push up and see if it works.

 

Setup Bitbucket Pipelines with Digital Ocean Droplets

 

Install Ansible

ADDED SECURITY (block root from ssh login)

Add a non sudo user which we can use to login.

ADDED SECURITY (block root from ssh login)

Resources:

ANSIBLE TOWER
FTP DEPLOY DIGITAL OCEAN
AWS S3 Website
AWS EC2
Fullstack4u.com shares web development tips for full stack web technologies and is helping share the passion to web developers worldwide.

Leave a Reply

Your email address will not be published. Required fields are marked *