cleanup stage
This commit is contained in:
parent
cb856b1396
commit
3bd4805df1
3
Makefile
3
Makefile
|
@ -34,11 +34,14 @@ prerequisites:
|
||||||
@- echo "\n### prerequisites ..."
|
@- echo "\n### prerequisites ..."
|
||||||
@- ./prerequisites.sh
|
@- ./prerequisites.sh
|
||||||
|
|
||||||
|
ifdef DEPLOY_CLEANUP
|
||||||
cleanup:
|
cleanup:
|
||||||
@- echo "\n### cleanup ..."
|
@- echo "\n### cleanup ..."
|
||||||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||||
|
scp cleanup.sh $(SSH_USER)@$(host):/$(DEPLOY_PATH)/$(DEPLOY_NAME); \
|
||||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh cleanup.sh $(host)"; \
|
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh cleanup.sh $(host)"; \
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
@- echo "\n### preparing ..."
|
@- echo "\n### preparing ..."
|
||||||
|
|
Loading…
Reference in New Issue