Public | Automated Build

Last pushed: a year ago
Short Description
Docker deployment api
Full Description

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"
}
Docker Pull Command
Owner
shipment
Source Repository

Comments (0)