From bb75839904cebfaf3614be501274ff399c6a29c2 Mon Sep 17 00:00:00 2001 From: yourfriendoss Date: Sun, 19 Oct 2025 17:02:05 +0300 Subject: [PATCH] "this is insane" no it's actually act-runner-windows-cursed --- README.md | 25 +++++++++++++++++++++++++ config.yml | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 README.md create mode 100644 config.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..907c613 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# act-runner-windows-cursed + +this allows you to run a node20(git & choco included) + windows server 2022 + act-runner system with a single command & config files + +# mini tutorial + +``` +mkdir data + +# here you have to set config.yml to the one that's in this repo + +docker run -v ./data:C:\data -v '\\.\pipe\docker_engine:\\.\pipe\docker_engine' ` + -e GITEA_INSTANCE_URL=https://git.sad.ovh ` + -e GITEA_RUNNER_REGISTRATION_TOKEN=regtoken ` + -e GITEA_RUNNER_NAME=windows ` + -e CONFIG_FILE=config.yml ` + --user ContainerAdministrator ` + --name act_windows git.sad.ovh/sophie/act-runner-windows-cursed + +# it'll register and you gotta restart it (click ctrl+c 3 times) + +# this allows .runner & data & config.yml to be read by the docker container (and also everyone, but whatever, this is a POC atm) + +icacls C:\Users\Docker\forgejo\data /grant Everyone:(F) /T +``` diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..4eb3c39 --- /dev/null +++ b/config.yml @@ -0,0 +1,39 @@ +log: + level: info + job_level: info + +runner: + file: .runner + capacity: 1 + envs: + A_TEST_ENV_NAME_2: a_test_env_value_2 + env_file: .env + timeout: 3h + shutdown_timeout: 3h + insecure: false + fetch_timeout: 5s + fetch_interval: 2s + report_interval: 1s + labels: [] +cache: + enabled: false + port: 0 + dir: "C:\\hostedtoolcache" + external_server: "" + secret: "" + host: "" + proxy_port: 0 + actions_cache_url_override: "" +container: + network: nat + enable_ipv6: false + privileged: false + workdir_parent: "C:\\workspace" + options: "--volume=C:\\hostedtoolcache:C:\\hostedtoolcache --volume=C:\\workspace:C:\\workspace --volume=C:\\ProgramData\\act:C:\\act" + valid_volumes: + - '**' + docker_host: "-" + force_pull: false + force_rebuild: false +host: + workdir_parent: null