Skip to content

Commit 3802115

Browse files
committed
Add craft ssh key to amd64 builder
1 parent 1bdf3ea commit 3802115

File tree

1 file changed

+60
-60
lines changed

1 file changed

+60
-60
lines changed

cookbooks/boxcutter_builder/recipes/default.rb

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -117,65 +117,65 @@
117117
content craft_rsa_ssh_key_private
118118
end
119119

120-
ssh_known_hosts_entry 'github.com' do
121-
file_location '/home/github-runner/.ssh/known_hosts'
122-
owner 'github-runner'
123-
group 'github-runner'
124-
end
125-
126-
# arm64 builder
127-
ssh_known_hosts_entry '10.0.1.70' do
128-
file_location '/home/github-runner/.ssh/known_hosts'
129-
owner 'github-runner'
130-
group 'github-runner'
131-
end
132-
133-
node.default['polymath_docker']['buildx']['github-runner'] = {
134-
'home' => '/home/github-runner',
135-
'user' => 'github-runner',
136-
'group' => 'github-runner',
137-
'builders' => {
138-
'github-runner-multi-arch-builder' => {
139-
'name' => 'github-runner-multi-arch-builder',
140-
'driver' => 'docker-container',
141-
'platform' => 'linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/amd64/v4,linux/386',
142-
'use' => true,
143-
'append' => {
144-
'10.0.1.175' => {
145-
'name' => '10.0.1.175',
146-
'endpoint' => 'host=ssh://github-runner@10.0.1.175',
147-
'platform' => 'linux/arm64,linux/arm/v7,linux/arm/v6',
148-
},
149-
},
150-
},
151-
},
152-
}
153-
154-
directory '/home/github-runner/actions-runner' do
155-
owner 'github-runner'
156-
group 'github-runner'
157-
mode '0700'
158-
end
159-
160-
%w{
161-
oci
162-
}.each do |dir|
163-
directory "/home/github-runner/actions-runner/#{dir}" do
164-
owner 'github-runner'
165-
group 'github-runner'
166-
mode '0700'
167-
end
168-
169-
node.default['boxcutter_github']['github_runner']['runners']["/home/github-runner/actions-runner/#{dir}"] = {
170-
'runner_name' => node['hostname'],
171-
'labels' => ['self-hosted', 'multi-arch'],
172-
'url' => "https://github.com/boxcutter/#{dir}",
173-
'owner' => 'github-runner',
174-
'group' => 'github-runner',
175-
}
176-
end
177-
178-
include_recipe 'boxcutter_github::cli'
179-
include_recipe 'boxcutter_github::runner'
120+
# ssh_known_hosts_entry 'github.com' do
121+
# file_location '/home/github-runner/.ssh/known_hosts'
122+
# owner 'github-runner'
123+
# group 'github-runner'
124+
# end
125+
#
126+
# # arm64 builder
127+
# ssh_known_hosts_entry '10.0.1.70' do
128+
# file_location '/home/github-runner/.ssh/known_hosts'
129+
# owner 'github-runner'
130+
# group 'github-runner'
131+
# end
132+
#
133+
# node.default['polymath_docker']['buildx']['github-runner'] = {
134+
# 'home' => '/home/github-runner',
135+
# 'user' => 'github-runner',
136+
# 'group' => 'github-runner',
137+
# 'builders' => {
138+
# 'github-runner-multi-arch-builder' => {
139+
# 'name' => 'github-runner-multi-arch-builder',
140+
# 'driver' => 'docker-container',
141+
# 'platform' => 'linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/amd64/v4,linux/386',
142+
# 'use' => true,
143+
# 'append' => {
144+
# '10.0.1.175' => {
145+
# 'name' => '10.0.1.175',
146+
# 'endpoint' => 'host=ssh://github-runner@10.0.1.175',
147+
# 'platform' => 'linux/arm64,linux/arm/v7,linux/arm/v6',
148+
# },
149+
# },
150+
# },
151+
# },
152+
# }
153+
#
154+
# directory '/home/github-runner/actions-runner' do
155+
# owner 'github-runner'
156+
# group 'github-runner'
157+
# mode '0700'
158+
# end
159+
#
160+
# %w{
161+
# oci
162+
# }.each do |dir|
163+
# directory "/home/github-runner/actions-runner/#{dir}" do
164+
# owner 'github-runner'
165+
# group 'github-runner'
166+
# mode '0700'
167+
# end
168+
#
169+
# node.default['boxcutter_github']['github_runner']['runners']["/home/github-runner/actions-runner/#{dir}"] = {
170+
# 'runner_name' => node['hostname'],
171+
# 'labels' => ['self-hosted', 'multi-arch'],
172+
# 'url' => "https://github.com/boxcutter/#{dir}",
173+
# 'owner' => 'github-runner',
174+
# 'group' => 'github-runner',
175+
# }
176+
# end
177+
#
178+
# include_recipe 'boxcutter_github::cli'
179+
# include_recipe 'boxcutter_github::runner'
180180
end
181181
end

0 commit comments

Comments
 (0)