cleanup stage
This commit is contained in:
parent
cb856b1396
commit
3bd4805df1
5
Makefile
5
Makefile
|
@ -34,12 +34,15 @@ prerequisites:
|
|||
@- echo "\n### prerequisites ..."
|
||||
@- ./prerequisites.sh
|
||||
|
||||
ifdef DEPLOY_CLEANUP
|
||||
cleanup:
|
||||
@- echo "\n### cleanup ..."
|
||||
@- $(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)"; \
|
||||
)
|
||||
|
||||
endif
|
||||
|
||||
prepare:
|
||||
@- echo "\n### preparing ..."
|
||||
@- chmod 600 secrets.mk
|
||||
|
|
Loading…
Reference in New Issue