mirror of
				https://github.com/taigrr/yq
				synced 2025-01-18 04:53:17 -08:00 
			
		
		
		
	Cache devtools and vendor libs in docker
This commit is contained in:
		
							parent
							
								
									b3b60665e4
								
							
						
					
					
						commit
						b3532e0a61
					
				| @ -2,9 +2,16 @@ FROM golang:1.9 as builder | |||||||
| 
 | 
 | ||||||
| WORKDIR /go/src/mikefarah/yq | WORKDIR /go/src/mikefarah/yq | ||||||
| 
 | 
 | ||||||
|  | # cache devtools | ||||||
|  | COPY ./scripts/devtools.sh /go/src/mikefarah/yq/scripts/devtools.sh | ||||||
|  | RUN ./scripts/devtools.sh | ||||||
|  | 
 | ||||||
|  | # cache vendor | ||||||
|  | COPY ./vendor/vendor.json /go/src/mikefarah/yq/vendor/vendor.json | ||||||
|  | RUN govendor sync | ||||||
|  | 
 | ||||||
| COPY . /go/src/mikefarah/yq | COPY . /go/src/mikefarah/yq | ||||||
| 
 | 
 | ||||||
| RUN scripts/devtools.sh |  | ||||||
| RUN CGO_ENABLED=0 make local build | RUN CGO_ENABLED=0 make local build | ||||||
| 
 | 
 | ||||||
| # Choose alpine as a base image to make this useful for CI, as many | # Choose alpine as a base image to make this useful for CI, as many | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user