20 lines
		
	
	
		
			605 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
		
			605 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| 
								 | 
							
								REPOSITORY  = vcs.enp.one/skylab/s3cmd-container
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.PHONY: help docs
							 | 
						||
| 
								 | 
							
								# source: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
							 | 
						||
| 
								 | 
							
								help: ## List Makefile targets
							 | 
						||
| 
								 | 
							
									$(info Makefile documentation)
							 | 
						||
| 
								 | 
							
									@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-10s\033[0m %s\n", $$1, $$2}'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								image:  ## Build image
							 | 
						||
| 
								 | 
							
									podman build . --tag $(REPOSITORY):latest
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								push: image  ## Build and publish image
							 | 
						||
| 
								 | 
							
									podman login $(shell echo $(REPOSITORY) | cut -d '/' -f 1)
							 | 
						||
| 
								 | 
							
									podman push $(REPOSITORY):latest
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								dev:  ## Setup local dev environment
							 | 
						||
| 
								 | 
							
									poetry install
							 |