From 2ed8586cb13caf9981da84b5c8309b70fe5038f5 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Wed, 25 May 2022 16:18:00 +0000 Subject: [PATCH] update build --- .space.kts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.space.kts b/.space.kts index 46b382e..cb554f7 100644 --- a/.space.kts +++ b/.space.kts @@ -2,10 +2,12 @@ job("Deploy") { startOn { gitPush { enabled = false } } - - gradlew("openjdk:11", "installDist") - - container(displayName = "Deploy via scp", image = "openjdk:11") { + + container(image = "openjdk:11") { + kotlinScript { api -> + api.gradlew("installDist") + } + env["HOST"] = Params("spc-host") env["USER"] = Secrets("spc-webmaster-user") env["ID"] = Secrets("spc-webmaster-id") @@ -14,8 +16,7 @@ job("Deploy") { interpreter = "/bin/bash" content = """ ls -la - """.trimIndent() + """.trimIndent() } } - } \ No newline at end of file