gitea/setup_act_runner.sh

16 lines
491 B
Bash
Raw Normal View History

2023-03-25 12:07:14 +00:00
#!/bin/bash
source .env
# Download and install act_runner
wget https://dl.gitea.com/act_runner/main/act_runner-main-linux-amd64 -O act_runner
chmod +x ./act_runner
sudo mv ./act_runner /usr/local/bin/
# Register server as runner on Gitea
act_runner register --instance https://$GITEA_HOSTNAME --token $GITEA_TOKEN --no-interactive
# Create act-runner systemd service and start it
sudo cp ./act-runner.service /lib/systemd/system/act-runner.service
sudo systemctl enable --now act-runner