mirror of
https://git.digitalstudium.com/digitalstudium/gitea
synced 2023-12-29 08:06:35 +00:00
first commit
This commit is contained in:
15
setup_act_runner.sh
Executable file
15
setup_act_runner.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user