From c6008e1be0c33309afa7f586d8122dbe7badc135 Mon Sep 17 00:00:00 2001 From: Gabriel Carneiro Date: Thu, 27 Feb 2025 08:26:08 -0300 Subject: [PATCH] init commit --- config.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ docker-compose.yml | 22 ++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100755 config.yaml create mode 100644 docker-compose.yml diff --git a/config.yaml b/config.yaml new file mode 100755 index 0000000..b73e234 --- /dev/null +++ b/config.yaml @@ -0,0 +1,41 @@ +log: + level: info + +runner: + # Where to store the registration result. + file: .runner + capacity: 1 + envs: + + # Extra environment variables to run jobs from a file. + # It will be ignored if it's empty or the file doesn't exist. + # env_file: .env + + timeout: 3h + + # Whether skip verifying the TLS certificate of the Gitea instance. + insecure: false + + # The timeout for fetching the job from the Gitea instance. + fetch_timeout: 5s + + # The interval for fetching the job from the Gitea instance. + fetch_interval: 2s + + # The labels of a runner are used to determine which jobs the runner can run, and how to run them. + # Like: "macos-arm64:host" or "ubuntu-latest:docker://gitea/runner-images:ubuntu-latest" + # Find more images provided by Gitea at https://gitea.com/gitea/runner-images . + # If it's empty when registering, it will ask for inputting labels. + # If it's empty when execute `daemon`, will use labels in `.runner` file. + labels: + - "ubuntu-latest:docker://gitea/runner-images:ubuntu-latest" + +cache: + enabled: false + dir: "" + host: "" + port: 0 + external_server: "" + +host: + workdir_parent: diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..eee1f7c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,22 @@ +services: + runner: + image: gitea/act_runner + restart: always + environment: + CONFIG_FILE: /config.yaml + GITEA_INSTANCE_URL: "https://git.alice.ufsj.edu.br" + GITEA_RUNNER_REGISTRATION_TOKEN_FILE: /run/secrets/runner_token + GITEA_RUNNER_NAME: "Alice Runner" + secrets: + - runner_token + volumes: + - data:/data + - ./config.yaml:/config.yaml + - /var/run/docker.sock:/var/run/docker.sock + +volumes: + data: + +secrets: + runner_token: + file: ./secrets/runner_token