aboutsummaryrefslogtreecommitdiff
path: root/app/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'app/jobs')
-rw-r--r--app/jobs/govuk_guix/build_job.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/jobs/govuk_guix/build_job.rb b/app/jobs/govuk_guix/build_job.rb
index c4da654..94acd70 100644
--- a/app/jobs/govuk_guix/build_job.rb
+++ b/app/jobs/govuk_guix/build_job.rb
@@ -37,8 +37,6 @@ class GovukGuix::BuildJob < GovukGuix::Job
remote_host = options[:run_remotely_on_host]
if remote_host
- ssh_command = ['ssh', remote_host]
-
# Copy the revision to the remote host, to ensure it's available
# there
run_command(
@@ -47,12 +45,9 @@ class GovukGuix::BuildJob < GovukGuix::Job
"--to=#{remote_host}",
mini_environment.govuk_guix_revision.store_path
)
- else
- ssh_command = []
end
output = run_command(
- *ssh_command,
"#{mini_environment.govuk_guix_revision.store_path}/bin/govuk",
'system',
'build',
@@ -60,7 +55,8 @@ class GovukGuix::BuildJob < GovukGuix::Job
DEFAULT_ARGUMENTS.merge(options[:arguments])
),
*signon_user_arguments(mini_environment.signon_users),
- *options[:services]
+ *options[:services],
+ run_remotely_on_host: remote_host
)
build_output = output.last.strip