Reviewed-on: FOCS-dev/runner-images#3 Co-authored-by: Boming Zhang <bomingzh@sjtu.edu.cn> Co-committed-by: Boming Zhang <bomingzh@sjtu.edu.cn>
This commit is contained in:
		
							parent
							
								
									094f473871
								
							
						
					
					
						commit
						fc0358eefd
					
				
							
								
								
									
										35
									
								
								.gitea/workflows/push.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								.gitea/workflows/push.yaml
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| --- | ||||
| name: push | ||||
| on: | ||||
|     push: | ||||
|         branches: | ||||
|             - master | ||||
| jobs: | ||||
|     build: | ||||
|         container: | ||||
|             image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest | ||||
|             volumes: | ||||
|                 - /home/actions/.ssh:/root/.ssh | ||||
|         steps: | ||||
|             - name: Check out repository code | ||||
|               uses: https://gitea.com/BoYanZh/checkout@focs | ||||
|             - name: Setup Go 1.23.1 | ||||
|               run: | | ||||
|                   wget -q https://studygolang.com/dl/golang/go1.23.1.linux-amd64.tar.gz | ||||
|                   rm -rf /usr/local/go | ||||
|                   tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz | ||||
|                   rm -rf go1.23.1.linux-amd64.tar.gz | ||||
|                   echo "PATH=$PATH:/usr/local/go/bin:/root/go/bin" >> $GITHUB_ENV | ||||
|             - name: Display Go version | ||||
|               run: go version | ||||
|             - name: Prepare | ||||
|               run: | | ||||
|                   go env -w GO111MODULE=on | ||||
|                   go env -w GOPROXY=https://goproxy.io,direct | ||||
|                   chown -R root:root /root/.ssh | ||||
|             - name: Build | ||||
|               run: make build | ||||
|             - name: Check images | ||||
|               run: docker ps -a | ||||
|             - name: Push | ||||
|               run: make push | ||||
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							|  | @ -1 +1,2 @@ | |||
| /bin/joj3 | ||||
| /bin/* | ||||
| !/bin/joj3-teapot | ||||
|  |  | |||
							
								
								
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| [submodule "JOJ3"] | ||||
| 	path = JOJ3 | ||||
| 	url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3.git | ||||
|  | @ -1,5 +1,3 @@ | |||
| # syntax=docker/dockerfile:1 | ||||
| 
 | ||||
| FROM focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest-slim | ||||
| 
 | ||||
| RUN apt-get update && \ | ||||
|  |  | |||
							
								
								
									
										1
									
								
								JOJ3
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
								
							
						
						
									
										1
									
								
								JOJ3
									
									
									
									
									
										Submodule
									
								
							|  | @ -0,0 +1 @@ | |||
| Subproject commit 1bb0ddd253092895405d02e66ff089743735c941 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user