From 786b56f1a2c3bc0d2646f5b7252f2e2f02b3ef87 Mon Sep 17 00:00:00 2001 From: yourfriendoss Date: Sun, 19 Oct 2025 17:15:17 +0300 Subject: [PATCH] does this work --- README.md | 12 +++++++++--- config.yml | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1fa14e2..e254c16 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,16 @@ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned # mini tutorial ```ps1 + +mkdir runner + +cd runner + mkdir data -# here you have to set config.yml to the one that's in this repo +iwr https://git.sad.ovh/sophie/act-runner-windows-cursed/raw/branch/main/config.yml -outfile data\config.yml + +cmd /C "icacls $((Get-Item .).FullName)\data /grant Everyone:(F) /T" docker run -v ./data:C:\data -v '\\.\pipe\docker_engine:\\.\pipe\docker_engine' ` -e GITEA_INSTANCE_URL=https://git.sad.ovh ` @@ -31,7 +38,6 @@ docker run -v ./data:C:\data -v '\\.\pipe\docker_engine:\\.\pipe\docker_engine' # 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 - +cmd /C "icacls C:\Users\Docker\forgejo\data /grant Everyone:(F) /T" # also, after this, modify .runner to have `windows-node-iron:host` in the labels: [] part ``` diff --git a/config.yml b/config.yml index 4eb3c39..dfc0688 100644 --- a/config.yml +++ b/config.yml @@ -31,7 +31,7 @@ container: 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