chore: add date & time to version
This commit is contained in:
		
							parent
							
								
									f4662eb123
								
							
						
					
					
						commit
						cdab5ab4c8
					
				
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							|  | @ -3,7 +3,9 @@ | ||||||
| BUILD_DIR = ./build | BUILD_DIR = ./build | ||||||
| TMP_DIR = ./tmp | TMP_DIR = ./tmp | ||||||
| APPS := $(notdir $(wildcard ./cmd/*)) | APPS := $(notdir $(wildcard ./cmd/*)) | ||||||
| VERSION := $(shell git rev-parse --short HEAD) | COMMIT_HASH := $(shell git rev-parse --short HEAD) | ||||||
|  | DATE := $(shell date +"%Y%m%d-%H%M%S") | ||||||
|  | VERSION := $(COMMIT_HASH)-$(DATE) | ||||||
| FLAGS := "-s -w -X main.Version=$(VERSION)" | FLAGS := "-s -w -X main.Version=$(VERSION)" | ||||||
| 
 | 
 | ||||||
| all: build | all: build | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user