1
0
Fork 0
mirror of https://git.chefkoch.net/pub/make-deploy synced 2025-05-12 18:44:56 +00:00

cleanup stage

This commit is contained in:
Andreas Neue 2023-10-16 09:30:19 +02:00
parent 21c5d0c58e
commit cb856b1396
2 changed files with 10 additions and 2 deletions

View file

@ -11,12 +11,12 @@ endif
include make-deploy/$(DEPLOY_TYPE).mk
.PHONY: self-update mandatory 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
self-update:
@- git submodule update --remote
deploy: mandatory 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 post-local post-deploy reload
mandatory:
@- echo "\n### mandatory check"
@ -33,6 +33,12 @@ endif
prerequisites:
@- echo "\n### prerequisites ..."
@- ./prerequisites.sh
cleanup:
@- echo "\n### cleanup ..."
@- $(foreach host,$(DEPLOY_HOSTS), \
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh cleanup.sh $(host)"; \
)
prepare:
@- echo "\n### preparing ..."