mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	Add docker tagging
Small tweak to tag docker image with current release number.
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @@ -3,6 +3,7 @@ BUILD_VERBOSE := -v | ||||
| TEST_VERBOSE := -v | ||||
|  | ||||
| DOCKER_IMAGE_NAME := $$USER/coredns | ||||
| DOCKER_VERSION := $(shell grep 'coreVersion' coremain/version.go | awk '{ print $$3 }' | tr -d '"') | ||||
|  | ||||
| all: coredns | ||||
|  | ||||
| @@ -16,6 +17,7 @@ coredns: deps | ||||
| docker: deps | ||||
| 	CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" | ||||
| 	docker build -t $(DOCKER_IMAGE_NAME) . | ||||
| 	docker tag $(DOCKER_IMAGE_NAME):latest $(DOCKER_IMAGE_NAME):$(DOCKER_VERSION) | ||||
|  | ||||
| .PHONY: deps | ||||
| deps: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user