Compare commits

...

2 Commits

Author SHA1 Message Date
3c66044189 env add 2025-04-02 15:13:39 +03:00
53aa03b94d delete 2025-04-02 15:13:32 +03:00
3 changed files with 12 additions and 13 deletions

4
.env Normal file
View File

@ -0,0 +1,4 @@
RUNNER_NAME=RunnerName
RUNNER_LABEL=RunnerLabel
RUNNER_HOST=http://92.51.12.43/
RUNNER_TOKEN=fDFMZh0CPV8CsOTVDlSHQXsp96Ji06KjyTVlwf4D

View File

@ -1,12 +0,0 @@
chmod +x act_runner
./act_runner --version
cp ./act_runner.service /etc/systemd/system/act_runner.service
cp ./act_runner /usr/local/bin/act_runner
mkdir /etc/act_runner
cp ./config.yaml /etc/act_runner/config.yaml
echo 'daemon reload'
systemctl daemon-reload
systemctl enable act_runner.service
systemctl start act_runner.service

View File

@ -1,7 +1,13 @@
ifneq (,$(wildcard ./.env))
include .env
export
endif
start:
chmod +x act_runner
./act_runner --version
./act_runner register --no-interactive --instance http://92.51.12.43/ --token fDFMZh0CPV8CsOTVDlSHQXsp96Ji06KjyTVlwf4D --name MyRunner --labels RunnerLabels
./act_runner register --no-interactive --instance $(RUNNER_HOST) --token $(RUNNER_TOKEN) --name $(RUNNER_NAME) --labels $(RUNNER_LABEL)
#mkdir /etc/act_runner
#mkdir /var/lib/act_runner
@ -9,6 +15,7 @@ start:
cp ./act_runner.service /etc/systemd/system/act_runner.service
cp ./act_runner /usr/local/bin/act_runner
cp ./config.yaml /etc/act_runner/config.yaml
cp .runner /var/lib/act_runner/.runner
systemctl daemon-reload
systemctl enable act_runner.service