fixed call to pre- and post-deploy.sh
This commit is contained in:
		
							parent
							
								
									15c4d3a67f
								
							
						
					
					
						commit
						6049721ee2
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		
							
								
								
									
										11
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
					@ -10,10 +10,16 @@ create_contexts:
 | 
				
			||||||
deploy: upload pre-deploy pull start post-deploy
 | 
					deploy: upload pre-deploy pull start post-deploy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pre-deploy:
 | 
					pre-deploy:
 | 
				
			||||||
	@- cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy.sh
 | 
						@- $(foreach host,$(DEPLOY_HOSTS), \
 | 
				
			||||||
 | 
							cd $(DEPLOY_PATH)/$(DEPLOY_NAME); \
 | 
				
			||||||
 | 
							sh pre-deploy.sh; \
 | 
				
			||||||
 | 
						)
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
post-deploy:
 | 
					post-deploy:
 | 
				
			||||||
	@- cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy.sh
 | 
						@- $(foreach host,$(DEPLOY_HOSTS), \
 | 
				
			||||||
 | 
							cd $(DEPLOY_PATH)/$(DEPLOY_NAME); \
 | 
				
			||||||
 | 
							sh post-deploy.sh; \
 | 
				
			||||||
 | 
						)
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
upload:
 | 
					upload:
 | 
				
			||||||
	@- echo "\n### uploading files"
 | 
						@- echo "\n### uploading files"
 | 
				
			||||||
| 
						 | 
					@ -52,7 +58,6 @@ logs-compose:
 | 
				
			||||||
	@- echo "\n### logs"
 | 
						@- echo "\n### logs"
 | 
				
			||||||
	@- docker context use $(host)
 | 
						@- docker context use $(host)
 | 
				
			||||||
	@- docker-compose logs -f $(service)
 | 
						@- docker-compose logs -f $(service)
 | 
				
			||||||
	
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
start-swarm:
 | 
					start-swarm:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue