/disc-image-demo

A short demonstration on how to use disc images as build artifacts.

Primary LanguageRuby

You will need a DigitalOcean account for this demo.

(DO is pretty cheap at 0.7¢/hour for the low-end box. https://www.digitalocean.com/pricing/)

You will need your API Client ID and API Key, found here:

https://cloud.digitalocean.com/api_access

You will also want to add your public ssh key so that you can access your deployed environments:

https://cloud.digitalocean.com/ssh_keys

Setup your build pipeline:

First, you'll want to fork the demo code which you can find at:

https://github.com/ChrisKozak/disc-image-demo

![Alt text](/setupImages/1 - Fork Demo.png?raw=true "1 - Fork Demo code")

Next, navigate to snap-ci.com.

Sign-in with your GitHub credentials.

When prompted, Authorize Snap, setup first build, and add the demo project to snap

![Alt text](/setupImages/2 - Authorize Snap.png?raw=true "1 - Authorize Snap") ![Alt text](/setupImages/3 - Setup Build.png?raw=true "3 - Setup Build") ![Alt text](/setupImages/4 - Add disk-image-demo.png?raw=true "4 - Add disk-image-demo project to snap-ci")

At this point, snap will have checked-out your code and setup a dummy-stage.

Customize the build stages as shown in the following images.

![Alt text](/setupImages/6 - Setup Image Assembly.png?raw=true "6 - Setup Image Assembly") ![Alt text](/setupImages/7 - Setup Staging Deploy.png?raw=true "7 - Setup Staging Deploy") ![Alt text](/setupImages/8 - Setup Prod Deploy.png?raw=true "8 - Setup Prod Deploy")

Let me know if you have any issues with the setup:

Chris : ckozak@gmail.com