Skip to content
This repository has been archived by the owner on Jan 26, 2018. It is now read-only.

shipment/deploy

Repository files navigation

deploy

Shipment Deploy is a docker container that will manage deployments on your server. It exposes an api for deploying docker containers from github repos.

Features

  • Fetch latest code, build, run new code and stop existing containers

Requirements

Usage

docker run -v /var/run/docker.sock:/var/run/docker.sock -e GH_USERNAME=username -e GH_TOKEN=token -e SECRET=secret -p 5000 shipment/deploy

API

http://${server host}:${deploy port}/deploy?org=${org}&repo=${repo}&branch=${branch}&secret=${secret}`

Auto Deployment from Github Webhooks

  • add http://[server host]:[deploy port]/github to your repo's webhooks
  • put the same secret that you set up when running the container

Docker Options

The deploy script will automatically look for autodeploy.json in your repo's folder. In there you can set additional docker args:

{
  "dockerargs": "-e NODE_ENV=production"
}

About

docker container that watches for git pushes and deploys

Resources

Stars

Watchers

Forks

Packages

No packages published