mirror of
https://git.chefkoch.net/pub/make-deploy
synced 2025-05-14 19:43:24 +00:00
cleanup stage
This commit is contained in:
parent
cb856b1396
commit
3bd4805df1
1 changed files with 4 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue