Gitea Actions

A.K.A Act Runner

Not really sure if I need to have these, but it would be nice to have the generation and deployment of this site handled by a single commit. It will be interesting to see what is needed to accomplish that task

Thus far I am standing up a single docker container and adding it to the Gitea instance on another box.

https://docs.gitea.com/usage/actions/act-runner

Docker

docker pull gitea/act_runner:latest

Configuration

docker run –entrypoint="" –rm -it gitea/act_runner:latest act_runner generate-config > config.yaml

docker compose

Lang: yaml
version: "3.8"
services:
  runner:
    image: gitea/act_runner:latest
    environment:
      CONFIG_FILE: /config.yaml
      GITEA_INSTANCE_URL: "${INSTANCE_URL}"
      GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
      GITEA_RUNNER_NAME: "${RUNNER_NAME}"
      GITEA_RUNNER_LABELS: "${RUNNER_LABELS}"
    volumes:
      - ./config.yaml:/config.yaml
      - ./data:/data
      - /var/run/docker.sock:/var/run/docker.sock