Setup android runner
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
## Generate config file
|
||||
|
||||
`docker run --rm --entrypoint gitea-runner gitea/runner:latest generate-config > config.yaml`
|
||||
|
||||
## config.yaml file
|
||||
|
||||
- On run section:
|
||||
- Set capacity: int (default: `capacity: 1`)
|
||||
- Use custom labels:
|
||||
```
|
||||
lables:
|
||||
- "android:docker://gitea-runner-android-runner:latest"
|
||||
```
|
||||
`gitea-runner-android-runner:latest` is custom image
|
||||
`android` is label use on `workflow`. Example in ci.yaml file:
|
||||
```
|
||||
runs-on: android
|
||||
```
|
||||
- On container section:
|
||||
- Use network (default `network: ""`):
|
||||
|
||||
```
|
||||
network: gitea-actions-network
|
||||
```
|
||||
|
||||
- Mount volume host to job container (default `options: `):
|
||||
|
||||
```
|
||||
options: --volume /d/Workspace/digitoolsolutions/code/gitea-runner/data:/data
|
||||
```
|
||||
|
||||
- Set valid volumes (default `valid_volumes: []`)
|
||||
|
||||
```
|
||||
valid_volumes:
|
||||
- "/d/Workspace/digitoolsolutions/code/gitea-runner/data"
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user