Archived post: posted sometime between 2016 and 2022.

Use GoCD to deploy a single Docker image to DigitalOcean

Overview of Our Set Up Steps

  1. Remote: Create an Ubuntu Droplet through the DigitalOcean UI.
  2. Local: Install GoCD Server and Agent on our local machine.
  3. Local: Set up GoCD to SSH into the Droplet and run dockersamples/static-site .

Remote: Create an Ubuntu Droplet through the DigitalOcean UI.

Local: Install GoCD Server and Agent on Ubuntu 18 LTS

Local: Set up GoCD to SSH into the Droplet and run dockersamples/static-site .

Local GoCD ---> SSH ---> Remote Digital Ocean Droplet ---> docker run

Other things we've done since then:

Build GoCD Server from Docker with docker build github.com/gocd/docker-gocd-server -t gocd/docker-gocd-server , find it with docker images and then run it with docker run <the-id> . See docker build for details.