aboutsummaryrefslogtreecommitdiff
path: root/app/services/govuk_guix/build_mini_environment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/govuk_guix/build_mini_environment.rb')
-rw-r--r--app/services/govuk_guix/build_mini_environment.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/services/govuk_guix/build_mini_environment.rb b/app/services/govuk_guix/build_mini_environment.rb
index 9cada20..37fc16b 100644
--- a/app/services/govuk_guix/build_mini_environment.rb
+++ b/app/services/govuk_guix/build_mini_environment.rb
@@ -36,7 +36,7 @@ module GovukGuix::BuildMiniEnvironment
remote_host = options[:run_remotely_on_host]
- if remote_host && Guix.available_locally?
+ if remote_host && Guix.available_locally? && false # TODO
# TODO: This doesn't use the private key specified by the
# backend, so it'll only work when the default SSH key has
# access to the remote host.
@@ -73,11 +73,12 @@ module GovukGuix::BuildMiniEnvironment
)
build_output = output.last.strip
-
- raise 'InvalidOutput' unless build_output.starts_with? '/gnu/store'
-
logger.debug(self.class) { "build_output: #{build_output}" }
+ unless arguments[:type] == 'aws-packer-ami'
+ raise 'InvalidOutput' unless build_output.starts_with? '/gnu/store'
+ end
+
mini_environment.update(
backend_data: {
build_output: build_output