Skip to content

Standard actions

In order to use the actions interface, you need to have the following installed or setup on whatever device you will be running it on.

  1. The latest version of Docker installed
    • This is a general requirement as the interface uses it to run your workflows inside of a container! If you need help on how to install it, please refer to the Docker documentation.
  2. A fully working account on TTGit
    • Make sure that your account is fully activated and that you have a secure password set on it before going forward!
  3. A repository of your choosing
    • Make sure that the actions permission is enabled so that your runner knows what it’s targeting too and the workflows it has to run on it!

Below are the steps to setting up your runner with your Docker installation. In this case, we will be using a Windows machine as an example.

  1. Click on this link and download the latest version and the correct one that will run on your computer’s hardware.
  2. Once you have it downloaded, move the application to any location of your choosing. In this case, we will move it to the C:\ drive.
  3. Open the Docker Desktop application before running the application. This is so that the runner knows that Docker is running in the background without any issues.

Below are the steps to creating your runner.

  1. Login into your TTGit account and go into your account settings.
  2. On the sidebar to the left, click on the “Actions” dropdown and click on the “Runners” link.
  3. Click on the “Create new Runner” dropdown button. In it, you will see a registration token that will be needed for the runner to function and operate.
  4. Go back to the location where you moved the runner application and open a command line application inside of it. In this case, it’s going to be the C:\ drive.
  5. Run the following command in the command window. ./act_runner register. Proceed to the next section to continue with this step.

The command window will ask you to enter the instance URL. Type in this for the website: https://git.ttnrtsite.me. Once you have that done, you need to paste in the generated registration token from the previous step. Copy the token and paste it into the command window. Make sure that it’s the correct one to avoid any errors. The last two steps are optional but you can customize it if you want, otherwise you are pretty much done with registering the runner! An example of the entire process is shown below.

INFO Registering runner, arch=amd64, os=darwin, version=0.1.5.
WARN Runner in user-mode.
INFO Enter the Gitea instance URL (for example, https://gitea.com/):
https://git.ttnrtsite.me/
INFO Enter the runner token:
fe884e8027dc292970d4e0303fe82b14xxxxxxxx
INFO Enter the runner name (if set empty, use hostname: Test.local):
INFO Enter the runner labels, leave blank to use the default labels (comma-separated, for example, ubuntu-latest:docker://gitea/runner-images:ubuntu-latest):
INFO Registering runner, name=Test.local, instance=https://git.ttnrtsite.me/, labels=[ubuntu-latest:docker://gitea/runner-images:ubuntu-latest ubuntu-22.04:docker://gitea/runner-images:ubuntu-22.04 ubuntu-20.04:docker://gitea/runner-images:ubuntu-20.04].
DEBU Successfully pinged the Gitea instance server
INFO Runner registered successfully.

If you wanted to, you can use the command below to register the runner using it’s arguments to make the process a bit easier to do.

Terminal window
./act_runner register --instance https://git.ttnrtsite.me --token fe884e8027dc292970d4e0303fe82b14xxxxxxxx --no-interactive

Below are the ways of how to run your actions runner.

Terminal window
docker run \
-e GITEA_INSTANCE_URL=https://git.ttnrtsite.me \
-e GITEA_RUNNER_REGISTRATION_TOKEN=your_token \
-v /var/run/docker.sock:/var/run/docker.sock \
--name my_runner \
gitea/act_runner:nightly
Terminal window
./act_runner daemon

Once you go back to the runners page in your account settings, your runner should appear and say that it’s online and ready to go! If it does not say that, you may need to fix something in your actions runner.

If you want to see some examples of workflow configurations, see the repository for it here to find out!