style: make image name a variable
This commit is contained in:
		
							parent
							
								
									6d861faf10
								
							
						
					
					
						commit
						26da235d99
					
				
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							|  | @ -1,5 +1,7 @@ | ||||||
| .PHONY: all prepare force-build build push | .PHONY: all prepare force-build build push | ||||||
| 
 | 
 | ||||||
|  | IMAGE_NAME:=focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim | ||||||
|  | 
 | ||||||
| all: build | all: build | ||||||
| 
 | 
 | ||||||
| prepare: | prepare: | ||||||
|  | @ -8,10 +10,10 @@ prepare: | ||||||
| 	cp JOJ3/build/joj3 JOJ3/build/repo-health-checker bin/ | 	cp JOJ3/build/joj3 JOJ3/build/repo-health-checker bin/ | ||||||
| 
 | 
 | ||||||
| force-build: prepare | force-build: prepare | ||||||
| 	docker build --no-cache -t focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim . | 	docker build --no-cache -t $(IMAGE_NAME) . | ||||||
| 
 | 
 | ||||||
| build: prepare | build: prepare | ||||||
| 	docker build -t focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim . | 	docker build -t $(IMAGE_NAME) . | ||||||
| 
 | 
 | ||||||
| push: | push: | ||||||
| 	docker push focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim | 	docker push $(IMAGE_NAME) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user