SURFscz / SRAM-deploy

Deploy scripts for the SCZ
Apache License 2.0
5 stars 5 forks source link

CI-runner runs as user 'martin' #289

Closed baszoetekouw closed 1 year ago

baszoetekouw commented 2 years ago

Laten we dit metene goed inregelen in Ansible. Ik heb al een beginnetje gemaakt in https://github.com/SURFscz/SRAM-deploy/tree/feature%2Bbhr12 om de bhr12 ook netjes te kunnen uitrollen

mrvanes commented 2 years ago

https://github.com/SURFscz/SRAM-deploy/commit/6d90442ba70cdbc0318081b0c15fda7605c3022d

mrvanes commented 2 years ago

Voorbereiding voor https://galaxy.ansible.com/monolithprojects/github_actions_runner toegevoegd

mrvanes commented 1 year ago
# cat actions.runner.SURFscz-SRAM-deploy.bhr12.service 
[Unit]
Description=GitHub Actions Runner (SURFscz-SRAM-deploy.bhr12)
After=network.target

[Service]
ExecStart=/opt/actions-runner/runsvc.sh
User=runner
WorkingDirectory=/opt/actions-runner
KillMode=process
KillSignal=SIGTERM
TimeoutStopSec=5min

[Install]
WantedBy=multi-user.target
baszoetekouw commented 1 year ago