Go to file
Stefan Riepenhausen 3e27a77f77 futher debugging server version 2022-12-08 12:57:29 +01:00
LICENSE added LICENSE 2022-09-20 19:49:21 +02:00
Makefile add build and test targets 2022-11-25 10:56:54 +01:00
README.md update 2022-11-09 13:49:52 +01:00
copy.mk copy.mk: -v 2022-11-07 16:58:26 +01:00
cron.mk added cron.mk 2022-07-08 19:46:22 +02:00
docker.mk reload target calls ./reload.sh on (for all deploy types) 2022-11-21 17:09:39 +01:00
helm.mk futher debugging server version 2022-12-08 12:57:29 +01:00
k8s.mk init commit kubernetes 2022-11-18 15:25:23 +01:00
kustomize.mk SYS-5450: add initial kustomize and helm targets 2022-11-03 09:48:22 +01:00

README.md

make-deploy

A simple Makefile based deployment system.

Installation

Clone make-deploy as a submodule into your repository:

$ git submodule add https://git.chefkoch.net/pub/make-deploy

Create a symlink to the Makefile:

$ ln -s make-deploy/Makefile .

Create config.mk (for common config options) and secrets.mk (for sensitive information, should be git-crypted) in your project.

Example config.mk:

DEPLOY_NAME = my-project
DEPLOY_PATH = /srv
DEPLOY_TYPE = compose
DEPLOY_HOSTS = server01.example.com server02.example.com

DOCKER_IMAGE = dr.example.com/my-project:latest
DOCKER_LOGIN = 1
DOCKER_REGISTRY = dr.example.com

SSH_USER = ci

Example secrets.mk:

DOCKER_USER = root
DOCKER_PASS = secret1234

Usage

Start the deployment process

make deploy

Create docker contexts for the target hosts

make create-docker-contexts

Update make-deploy submodule in your project

make self-update

Available options for DEPLOY_TYPE

copy, compose, swarm, k8s (TBD), helm, cron (TBD)

copy

Just copy the repo to the remote location(s). Put additional logic into pre- and post-deploy.sh.

compose

Docker Compose deployment.

swarm

Docker Swarm deployment.

k8s, helm, cron

To be implemented.