Shipment Deploy is a docker container that will manage deployments on your server. It exposes an api for deploying docker containers from github repos.
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
http://${server host}:${deploy port}/deploy?org=${org}&repo=${repo}&branch=${branch}&secret=${secret}`
http://[server host]:[deploy port]/github
to your repo's webhooksThe 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"
}