[+] 首次推送

This commit is contained in:
2024-12-31 16:50:29 +08:00
commit 5bb743ea1e
4 changed files with 134 additions and 0 deletions

13
run.sh Normal file
View File

@@ -0,0 +1,13 @@
docker pull docker.martin98.com/library/act_runner:latest
docker kill gitea_runner
docker run \
-v $(pwd)/${_AGENT}_config.yaml:/config.yaml \
-v $(pwd)/data:/data \
-v /var/run/docker.sock:/var/run/docker.sock \
-e CONFIG_FILE=/config.yaml \
-e GITEA_INSTANCE_URL=https://git.martin98.com \
-e GITEA_RUNNER_REGISTRATION_TOKEN=1LMGNymS5zvlogNwupiZgZjlr8EZeHqzEnT3tnwL \
-e GITEA_RUNNER_NAME=${_AGENT} \
-e GITEA_RUNNER_LABELS=${_LABEL} \
--name gitea_runner \
-d docker.martin98.com/library/act_runner:latest