This commit is contained in:
		
							parent
							
								
									03242ae60a
								
							
						
					
					
						commit
						c085ef6c09
					
				|  | @ -1,4 +1,3 @@ | ||||||
| --- |  | ||||||
| name: push | name: push | ||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
|  | @ -37,6 +36,8 @@ jobs: | ||||||
|         env: |         env: | ||||||
|           TZ: Asia/Shanghai |           TZ: Asia/Shanghai | ||||||
|         run: ${{ env.build_command }} |         run: ${{ env.build_command }} | ||||||
|  |       - name: Test | ||||||
|  |         run: make test | ||||||
|       - name: Check images |       - name: Check images | ||||||
|         run: docker images |         run: docker images | ||||||
|       - name: Remove dangling images |       - name: Remove dangling images | ||||||
|  |  | ||||||
							
								
								
									
										5
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								Makefile
									
									
									
									
									
								
							|  | @ -1,4 +1,4 @@ | ||||||
| .PHONY: all prepare force-build build push | .PHONY: all prepare force-build build test push | ||||||
| 
 | 
 | ||||||
| IMAGE_NAME := focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim | IMAGE_NAME := focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim | ||||||
| 
 | 
 | ||||||
|  | @ -18,5 +18,8 @@ force-build: prepare | ||||||
| build: prepare | build: prepare | ||||||
| 	docker build -t $(IMAGE_NAME) . | 	docker build -t $(IMAGE_NAME) . | ||||||
| 
 | 
 | ||||||
|  | test: | ||||||
|  | 	docker run --rm -it $(IMAGE_NAME) sudo -u tt -E joj3 --help | ||||||
|  | 
 | ||||||
| push: | push: | ||||||
| 	docker push $(IMAGE_NAME) | 	docker push $(IMAGE_NAME) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user