cleanup stage
This commit is contained in:
parent
cb856b1396
commit
3bd4805df1
5
Makefile
5
Makefile
|
@ -34,12 +34,15 @@ 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 ..."
|
||||||
@- chmod 600 secrets.mk
|
@- chmod 600 secrets.mk
|
||||||
|
|
Loading…
Reference in New Issue