finish it

This commit is contained in:
Soph :3 2025-10-19 17:36:37 +03:00
parent 786b56f1a2
commit 03bba642ec

View file

@ -15,29 +15,21 @@ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
# mini tutorial
```ps1
mkdir runner
cd runner
mkdir data
iwr https://git.sad.ovh/sophie/act-runner-windows-cursed/raw/branch/main/config.yml -outfile data\config.yml
iwr https://files.sad.ovh/public/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 `
-e GITEA_RUNNER_REGISTRATION_TOKEN=regtoken `
-e GITEA_RUNNER_REGISTRATION_TOKEN=RegistrationToken `
-e GITEA_RUNNER_NAME=windows `
-e CONFIG_FILE=config.yml `
-e GITEA_RUNNER_LABELS=windows-node-iron:host `
--user ContainerAdministrator `
--restart unless-stopped `
-d `
--name act_windows git.sad.ovh/sophie/act-runner-windows-cursed
# it'll register and you gotta restart it (click ctrl+c 3 times), and make sure to delete it after you restart it, via `docker rm act_windows`
# this allows .runner & data & config.yml to be read by the docker container (and also everyone, but whatever, this is a POC atm)
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
```