act_runner/run.sh
Martin a4dd213754
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
[+] 添加 --restart always
2024-12-31 17:14:26 +08:00

15 lines
584 B
Bash

docker pull docker.martin98.com/library/act_runner:latest
docker kill gitea_runner
docker rm gitea_runner
docker run \
-v $(pwd)/config.yaml:/config.yaml \
-v $(pwd)/data:/data \
--restart always \
-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