diff --git a/Dockerfile b/Dockerfile index f5eaaecb..72b24134 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ ENV GO111MODULE=on COPY go.* /go/src/ultre.me/calcbiz/ RUN go mod download COPY . /go/src/ultre.me/calcbiz/ +RUN make _ci_prepare RUN make release FROM alpine:3.8 diff --git a/Makefile b/Makefile index 0ceabc03..69c31857 100644 --- a/Makefile +++ b/Makefile @@ -118,6 +118,6 @@ docker.build: docker.release: docker.build docker push ultreme/calcbiz -.PHONY: release -release: docker.release +.PHONY: deploy +deploy: docker.release ssh zrwf.m.42.am -xec 'cd ~/go/src/ultre.me/calcbiz; git pull; make docker.up'