Skip to content

Commit

Permalink
Try another way to set up runcmd
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Wall <[email protected]>
  • Loading branch information
joakimk and p-wall committed Dec 2, 2024
1 parent 12622ff commit 032a7eb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/controllers/api/cloud_inits_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ def show
append: true,
},
],
runcmd: <<~BEGIN
export RUNNER_CFG_PAT=#{App.github_actions_runner_cfg_pat}
systemctl stop sshd
systemctl disable sshd
curl https://maintenance.auctionet.dev/running; true
curl -s https://raw.githubusercontent.com/actions/runner/main/scripts/create-latest-svc.sh | bash -s #{App.github_actions_runner_scope}
curl https://maintenance.auctionet.dev/it-ran; true
reboot
BEGIN
runcmd: [
"while read -r env; do export \"$env\"; done < /etc/environment",
"systemctl stop sshd",
"systemctl disable sshd",
"curl https://maintenance.auctionet.dev/running; true",
"curl -s https://raw.githubusercontent.com/actions/runner/main/scripts/create-latest-svc.sh | bash -s #{App.github_actions_runner_scope}",
"curl https://maintenance.auctionet.dev/it-ran; true",
"reboot",
],
}

yaml = "#cloud-config\n" +
Expand Down

0 comments on commit 032a7eb

Please sign in to comment.