mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 08:02:52 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			398 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			398 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| .PHONY: tag push
 | |
| default: push
 | |
| 
 | |
| ORG?=linuxkit
 | |
| IMAGE=sysfs
 | |
| DEPS=Dockerfile Makefile main.go
 | |
| 
 | |
| HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
 | |
| 
 | |
| tag: $(DEPS)
 | |
| 	docker build --squash --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) .
 | |
| 
 | |
| push: tag
 | |
| 	DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
 | |
| 	DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)
 |