From 98ad36d77771c39e825e5d99f67b94930f27b94b Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Wed, 25 May 2022 17:28:59 +0000 Subject: [PATCH] update CD --- .space.kts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.space.kts b/.space.kts index cb554f7..e9cc38a 100644 --- a/.space.kts +++ b/.space.kts @@ -1,22 +1,25 @@ +import circlet.pipelines.script.put + job("Deploy") { startOn { gitPush { enabled = false } } - + container(image = "openjdk:11") { kotlinScript { api -> api.gradlew("installDist") + api.fileShare().put(java.io.File("build/installDist")) } - + } + + container(image = "openjdk:11") { env["HOST"] = Params("spc-host") env["USER"] = Secrets("spc-webmaster-user") env["ID"] = Secrets("spc-webmaster-id") shellScript { interpreter = "/bin/bash" - content = """ - ls -la - """.trimIndent() + content = "echo \$ID | ssh -i /dev/stdin -r /mnt/space/share/spc-site/ \"\$USER@\$HOST:/opt\"" } } } \ No newline at end of file