cleanup stage

This commit is contained in:
Andreas Neue 2023-10-16 17:52:08 +02:00
parent cb856b1396
commit 3bd4805df1
1 changed files with 4 additions and 1 deletions

View File

@ -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