From 3ebb707fd39b3b4784a54d08987977920632ccfe Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 20 Apr 2020 12:36:47 +0200 Subject: [PATCH] Dokku deployment recipe --- Makefile | 8 +++++++- misc/dokku/CHECKS | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 025911f..890d7a9 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,13 @@ +DOKKU_URL := dokku@dev.lookingfora.name:guesstimate + dokku-build: docker build \ -t guesstimate-dokku:latest \ . dokku-run: - docker run -it --rm -p 8080:80 guesstimate-dokku:latest \ No newline at end of file + docker run -it --rm -p 8080:80 guesstimate-dokku:latest + +dokku-deploy: + $(if $(shell git config remote.dokku.url),, git remote add dokku $(DOKKU_URL)) + git push -f dokku $(shell git rev-parse HEAD):master \ No newline at end of file diff --git a/misc/dokku/CHECKS b/misc/dokku/CHECKS index cc9fac9..c1e8318 100644 --- a/misc/dokku/CHECKS +++ b/misc/dokku/CHECKS @@ -1 +1 @@ -/ "guesstimate" +/ guesstimate