mirror of
https://git.chefkoch.net/pub/make-deploy
synced 2025-05-12 18:44:56 +00:00
add pre- and post-local
This commit is contained in:
parent
cfc7d1ca0b
commit
a9ee4acddc
2 changed files with 14 additions and 3 deletions
10
Makefile
10
Makefile
|
@ -11,7 +11,7 @@ include secrets.mk
|
|||
self-update:
|
||||
@- git submodule update --remote
|
||||
|
||||
deploy: upload pre-deploy pull start post-deploy
|
||||
deploy: upload pre-deploy pre-local pull start post-local post-deploy
|
||||
|
||||
pre-deploy:
|
||||
@- echo "\n### running pre-deploy script"
|
||||
|
@ -25,6 +25,14 @@ post-deploy:
|
|||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy.sh"; \
|
||||
)
|
||||
|
||||
pre-local:
|
||||
@- echo "\n### running pre-local script"
|
||||
@- sh ./pre-local.sh
|
||||
|
||||
post-local:
|
||||
@- echo "\n### running pre-local script"
|
||||
@- sh ./post-local.sh
|
||||
|
||||
upload:
|
||||
@- echo "\n### uploading files"
|
||||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue