notification for manual deployments

This commit is contained in:
Andreas Neue 2024-07-01 09:02:17 +02:00
parent cd9575d0a7
commit 938e276821
1 changed files with 13 additions and 3 deletions

View File

@ -13,12 +13,12 @@ endif
include make-deploy/$(DEPLOY_TYPE).mk
.PHONY: self-update mandatory cleanup prerequisites prepare build test deploy pre-deploy post-deploy pre-local post-local upload pull start stop restart reload
.PHONY: self-update mandatory cleanup prerequisites prepare build test deploy pre-deploy post-deploy pre-local post-local upload pull start stop restart reload notify
self-update:
@- git submodule update --remote
deploy: mandatory cleanup prepare build test upload pre-deploy pre-local pull start post-local post-deploy reload
deploy: mandatory cleanup prepare build test upload pre-deploy pre-local pull start notify post-local post-deploy reload
mandatory:
@- echo "\n### mandatory check"
@ -123,6 +123,16 @@ start: start-$(DEPLOY_TYPE)
stop: stop-$(DEPLOY_TYPE)
notify:
ifdef DEPLOY_NOTIFY_HOSTS
ifdef DEPLOY_NOTIFY_MAIL
ifdef DEPLOY_NOTIFY_MSG
@- echo "\n### notify"
@- echo "$$DEPLOY_NOTIFY_MSG :: Please deploy manually on following hosts: $$DEPLOY_NOTIFY_HOSTS" | mail -s "make-deploy notification" $(DEPLOY_MAIL)
endif
endif
endif
logs: logs-$(DEPLOY_TYPE)
restart: restart-$(DEPLOY_TYPE)