finish it
This commit is contained in:
parent
786b56f1a2
commit
03bba642ec
1 changed files with 5 additions and 13 deletions
18
README.md
18
README.md
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue