Support overriding vars in Makefile
This commit is contained in:
		
							
								
								
									
										10
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,5 +1,5 @@
 | 
				
			|||||||
REPOSITORY=sentry-onpremise
 | 
					REPOSITORY?=sentry-onpremise
 | 
				
			||||||
TAG=latest
 | 
					TAG?=latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
OK_COLOR=\033[32;01m
 | 
					OK_COLOR=\033[32;01m
 | 
				
			||||||
NO_COLOR=\033[0m
 | 
					NO_COLOR=\033[0m
 | 
				
			||||||
@@ -12,6 +12,10 @@ $(REPOSITORY)_$(TAG).tar: build
 | 
				
			|||||||
	@echo "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@"
 | 
						@echo "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@"
 | 
				
			||||||
	@docker save $(REPOSITORY):$(TAG) > $@
 | 
						@docker save $(REPOSITORY):$(TAG) > $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					push:
 | 
				
			||||||
 | 
						@echo "$(OK_COLOR)==>$(NO_COLOR) Pushing $(REPOSITORY):$(TAG)"
 | 
				
			||||||
 | 
						@docker push $(REPOSITORY):$(TAG)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
all: build $(REPOSITORY)_$(TAG).tar
 | 
					all: build $(REPOSITORY)_$(TAG).tar
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: build all
 | 
					.PHONY: all build push
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user