diff --git a/.gitignore b/.gitignore index f264ca2..871d2e5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/musala-push /musala-mail /vendor /tmp diff --git a/Makefile b/Makefile index d5e7845..e0729c0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ GOFILES=$(wildcard *.go) -NAME=musala-mail +NAME=musala-push all: build diff --git a/cmd/musala-mail/config.go b/cmd/musala-push/config.go similarity index 99% rename from cmd/musala-mail/config.go rename to cmd/musala-push/config.go index 121f884..bdb1d10 100644 --- a/cmd/musala-mail/config.go +++ b/cmd/musala-push/config.go @@ -11,7 +11,7 @@ import ( ) const ( - programBinary string = "musala-mail" + programBinary string = "musala-push" ) var ( diff --git a/cmd/musala-mail/main.go b/cmd/musala-push/main.go similarity index 100% rename from cmd/musala-mail/main.go rename to cmd/musala-push/main.go diff --git a/cmd/musala-mail/trello.go b/cmd/musala-push/trello.go similarity index 100% rename from cmd/musala-mail/trello.go rename to cmd/musala-push/trello.go diff --git a/docker/Dockerfile b/docker/Dockerfile index 42ba3bd..1c8f018 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -6,7 +6,7 @@ FROM golang:1.12 AS build RUN git clone \ --single-branch \ --branch develop \ - https://github.com/glenux/musala-mail \ + https://github.com/glenux/musala-push \ /app \ && rm -f /app/contrib-trello \ && git clone \ @@ -30,9 +30,9 @@ RUN apk update \ && rm -rf /var/cache/apk/* RUN mkdir /app -COPY --from=build /app/musala-mail /app/ -COPY docker/musala-mail.cron /app/ +COPY --from=build /app/musala-push /app/ +COPY docker/musala-push.cron /app/ COPY templates/ /app/templates -CMD ["/bin/sh", "-c", "/usr/bin/crontab /app/musala-mail.cron && /usr/sbin/crond -f"] +CMD ["/bin/sh", "-c", "/usr/bin/crontab /app/musala-push.cron && /usr/sbin/crond -f"] diff --git a/docker/musala-mail.cron b/docker/musala-push.cron similarity index 85% rename from docker/musala-mail.cron rename to docker/musala-push.cron index 8f0a9b2..866db6d 100644 --- a/docker/musala-mail.cron +++ b/docker/musala-push.cron @@ -1,8 +1,8 @@ # ALL boards for given user -30 10 * * * cd /app && TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/musala-mail +30 10 * * * cd /app && TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/musala-push # Send this board to other user -30 10 * * * cd /app TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/musala-mail +30 10 * * * cd /app TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/musala-push # Send this board to mailing list -30 10 * * * cd /app TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/musala-mail +30 10 * * * cd /app TRELLO_URL="" TRELLO_TOKEN="" EMAIL_TO="" /app/musala-push diff --git a/go.mod b/go.mod index 2c1610e..ad556cf 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/glenux/musala-mail +module github.com/glenux/musala-push require ( cloud.google.com/go v0.44.3 // indirect