feature DEPLOY_START_DELAY, adds a delay when (re)starting targets after deployment
This commit is contained in:
parent
6ab5e15f8a
commit
0c93338e86
6 changed files with 8 additions and 3 deletions
|
@ -17,6 +17,7 @@ start-compose-file:
|
|||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||
echo "$(host)"; \
|
||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); docker-compose -f $(DEPLOY_COMPOSE_FILE) -p $(DEPLOY_COMPOSE_PROJECT) up -d"; \
|
||||
sleep $(DEPLOY_START_DELAY); \
|
||||
)
|
||||
|
||||
stop-compose-file:
|
||||
|
@ -34,4 +35,5 @@ restart-compose-file:
|
|||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||
echo "$(host)"; \
|
||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); docker-compose -f $(DEPLOY_COMPOSE_FILE) -p $(DEPLOY_COMPOSE_PROJECT) restart"; \
|
||||
sleep $(DEPLOY_START_DELAY); \
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue