does this work

This commit is contained in:
Soph :3 2025-10-19 17:15:17 +03:00
parent 86f93e5dce
commit 786b56f1a2
2 changed files with 10 additions and 4 deletions

View file

@ -15,9 +15,16 @@ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
# mini tutorial # mini tutorial
```ps1 ```ps1
mkdir runner
cd runner
mkdir data 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' ` docker run -v ./data:C:\data -v '\\.\pipe\docker_engine:\\.\pipe\docker_engine' `
-e GITEA_INSTANCE_URL=https://git.sad.ovh ` -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) # 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 # also, after this, modify .runner to have `windows-node-iron:host` in the labels: [] part
``` ```

View file

@ -31,7 +31,7 @@ container:
workdir_parent: "C:\\workspace" workdir_parent: "C:\\workspace"
options: "--volume=C:\\hostedtoolcache:C:\\hostedtoolcache --volume=C:\\workspace:C:\\workspace --volume=C:\\ProgramData\\act:C:\\act" options: "--volume=C:\\hostedtoolcache:C:\\hostedtoolcache --volume=C:\\workspace:C:\\workspace --volume=C:\\ProgramData\\act:C:\\act"
valid_volumes: valid_volumes:
- '**' - "**"
docker_host: "-" docker_host: "-"
force_pull: false force_pull: false
force_rebuild: false force_rebuild: false