Skip to content

Commit

Permalink
Make amd64 instance a github runner
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Dec 23, 2024
1 parent 7cffadd commit 3e023b4
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions cookbooks/boxcutter_builder/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,52 +130,52 @@
group 'github-runner'
end

# node.default['polymath_docker']['buildx']['github-runner'] = {
# 'home' => '/home/github-runner',
# 'user' => 'github-runner',
# 'group' => 'github-runner',
# 'builders' => {
# 'github-runner-multi-arch-builder' => {
# 'name' => 'github-runner-multi-arch-builder',
# 'driver' => 'docker-container',
# 'platform' => 'linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/amd64/v4,linux/386',
# 'use' => true,
# 'append' => {
# '10.0.1.175' => {
# 'name' => '10.0.1.175',
# 'endpoint' => 'host=ssh://[email protected]',
# 'platform' => 'linux/arm64,linux/arm/v7,linux/arm/v6',
# },
# },
# },
# },
# }
#
# directory '/home/github-runner/actions-runner' do
# owner 'github-runner'
# group 'github-runner'
# mode '0700'
# end
#
# %w{
# oci
# }.each do |dir|
# directory "/home/github-runner/actions-runner/#{dir}" do
# owner 'github-runner'
# group 'github-runner'
# mode '0700'
# end
#
# node.default['boxcutter_github']['github_runner']['runners']["/home/github-runner/actions-runner/#{dir}"] = {
# 'runner_name' => node['hostname'],
# 'labels' => ['self-hosted', 'multi-arch'],
# 'url' => "https://github.com/boxcutter/#{dir}",
# 'owner' => 'github-runner',
# 'group' => 'github-runner',
# }
# end
#
# include_recipe 'boxcutter_github::cli'
# include_recipe 'boxcutter_github::runner'
node.default['polymath_docker']['buildx']['github-runner'] = {
'home' => '/home/github-runner',
'user' => 'github-runner',
'group' => 'github-runner',
'builders' => {
'github-runner-multi-arch-builder' => {
'name' => 'github-runner-multi-arch-builder',
'driver' => 'docker-container',
'platform' => 'linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/amd64/v4,linux/386',
'use' => true,
'append' => {
'10.0.1.175' => {
'name' => '10.0.1.175',
'endpoint' => 'host=ssh://[email protected]',
'platform' => 'linux/arm64,linux/arm/v7,linux/arm/v6',
},
},
},
},
}

directory '/home/github-runner/actions-runner' do
owner 'github-runner'
group 'github-runner'
mode '0700'
end

%w{
oci
}.each do |dir|
directory "/home/github-runner/actions-runner/#{dir}" do
owner 'github-runner'
group 'github-runner'
mode '0700'
end

node.default['boxcutter_github']['github_runner']['runners']["/home/github-runner/actions-runner/#{dir}"] = {
'runner_name' => node['hostname'],
'labels' => ['self-hosted', 'multi-arch'],
'url' => "https://github.com/boxcutter/#{dir}",
'owner' => 'github-runner',
'group' => 'github-runner',
}
end

include_recipe 'boxcutter_github::cli'
include_recipe 'boxcutter_github::runner'
end
end

0 comments on commit 3e023b4

Please sign in to comment.