修改配置
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
Martin 2024-12-31 17:10:34 +08:00
parent 5e5622b9e4
commit 760a01d7a7
3 changed files with 26 additions and 5 deletions

View File

@ -16,4 +16,16 @@ docker run \
-e GITEA_RUNNER_LABELS=<runner_labels> \
--name my_runner \
-d gitea/act_runner:nightly
```
```
ubuntu-20.04
ubuntu-20.04-full
ubuntu-20.04-slim
{ubuntu-{latest,??.??}{,-full,-slim}}
docker pull docker.martin98.com/library/runner-images:0.2.9
```bash

View File

@ -38,9 +38,18 @@ runner:
# If it's empty when registering, it will ask for inputting labels.
# If it's empty when execute `daemon`, will use labels in `.runner` file.
labels:
- "ubuntu-latest:docker://gitea/runner-images:ubuntu-latest"
- "ubuntu-22.04:docker://gitea/runner-images:ubuntu-22.04"
- "ubuntu-20.04:docker://gitea/runner-images:ubuntu-20.04"
# - "ubuntu-latest:docker://gitea/runner-images:ubuntu-latest"
# - "ubuntu-22.04:docker://gitea/runner-images:ubuntu-22.04"
# - "ubuntu-20.04:docker://gitea/runner-images:ubuntu-20.04"
- "ubuntu-20.04:docker://docker.martin98.com/library/runner-images:ubuntu-20.04"
- "ubuntu-20.04-full:docker://docker.martin98.com/library/runner-images:ubuntu-20.04-full"
- "ubuntu-20.04-slim:docker://docker.martin98.com/library/runner-images:ubuntu-20.04-slim"
- "ubuntu-22.04:docker://docker.martin98.com/library/runner-images:ubuntu-22.04"
- "ubuntu-22.04-full:docker://docker.martin98.com/library/runner-images:ubuntu-22.04-full"
- "ubuntu-22.04-slim:docker://docker.martin98.com/library/runner-images:ubuntu-22.04-slim"
- "ubuntu-latest:docker://docker.martin98.com/library/runner-images:ubuntu-latest"
- "ubuntu-latest-full:docker://docker.martin98.com/library/runner-images:ubuntu-latest-full"
- "ubuntu-latest-slim:docker://docker.martin98.com/library/runner-images:ubuntu-latest-slim"
cache:
# Enable cache server to use actions/cache.

2
run.sh
View File

@ -2,7 +2,7 @@ docker pull docker.martin98.com/library/act_runner:latest
docker kill gitea_runner
docker rm gitea_runner
docker run \
-v $(pwd)/${_AGENT}_config.yaml:/config.yaml \
-v $(pwd)/config.yaml:/config.yaml \
-v $(pwd)/data:/data \
-v /var/run/docker.sock:/var/run/docker.sock \
-e CONFIG_FILE=/config.yaml \