Add gitea-act-runner
This commit is contained in:
		
							parent
							
								
									0282898be4
								
							
						
					
					
						commit
						dd5dde3d20
					
				
					 3 changed files with 27 additions and 0 deletions
				
			
		
							
								
								
									
										9
									
								
								gitea-act-runner/README.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								gitea-act-runner/README.md
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,9 @@
 | 
				
			||||||
 | 
					# gitea-act-runner
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					A runner for Gitea based on act.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Important step when deploying
 | 
				
			||||||
 | 
					When the runner loops not being able to read the file `/config/config.yaml`, enter the container and execute
 | 
				
			||||||
 | 
					```bash
 | 
				
			||||||
 | 
					touch /config/config.yaml
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
							
								
								
									
										0
									
								
								gitea-act-runner/config.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								gitea-act-runner/config.yaml
									
										
									
									
									
										Normal file
									
								
							
							
								
								
									
										18
									
								
								gitea-act-runner/docker-compose.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								gitea-act-runner/docker-compose.yaml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,18 @@
 | 
				
			||||||
 | 
					version: "3.8"
 | 
				
			||||||
 | 
					services:
 | 
				
			||||||
 | 
					  runner:
 | 
				
			||||||
 | 
					    image: gitea/act_runner:nightly
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      CONFIG_FILE: /config/config.yaml
 | 
				
			||||||
 | 
					      GITEA_INSTANCE_URL: "${INSTANCE_URL}"
 | 
				
			||||||
 | 
					      GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
 | 
				
			||||||
 | 
					      GITEA_RUNNER_NAME: "${RUNNER_NAME}"
 | 
				
			||||||
 | 
					      GITEA_RUNNER_LABELS: "${RUNNER_LABELS}"
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - act_runner_config:/config
 | 
				
			||||||
 | 
					      - act_runner_data:/data
 | 
				
			||||||
 | 
					      - /var/run/docker.sock:/var/run/docker.sock
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					volumes:
 | 
				
			||||||
 | 
					  act_runner_config:
 | 
				
			||||||
 | 
					  act_runner_data:
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue