Standard actions
Requirements
Section titled “Requirements”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.
- 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.
- 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!
- 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!
Installation process
Section titled “Installation process”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.
- Click on this link and download the latest version and the correct one that will run on your computer’s hardware.
- 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. - 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.
Creating the runner
Section titled “Creating the runner”Below are the steps to creating your runner.
- Login into your TTGit account and go into your account settings.
- On the sidebar to the left, click on the “Actions” dropdown and click on the “Runners” link.
- 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.
- 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. - Run the following command in the command window.
./act_runner register. Proceed to the next section to continue with this step.
Creating the runner (part 2)
Section titled “Creating the runner (part 2)”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:fe884e8027dc292970d4e0303fe82b14xxxxxxxxINFO 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 serverINFO 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.
./act_runner register --instance https://git.ttnrtsite.me --token fe884e8027dc292970d4e0303fe82b14xxxxxxxx --no-interactiveRunning it
Section titled “Running it”Below are the ways of how to run your actions runner.
Docker method
Section titled “Docker method”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:nightlyStandalone method
Section titled “Standalone method”./act_runner daemonResults
Section titled “Results”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.
Examples of Workflow configurations
Section titled “Examples of Workflow configurations”If you want to see some examples of workflow configurations, see the repository for it here to find out!