From 4f85177c0a60c04d8cb9131f2ea924c93e377b11 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Wed, 15 Jun 2022 16:37:21 +0000 Subject: [PATCH] Update CD --- .space.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.space.kts b/.space.kts index 05a9e92..b83c4a7 100644 --- a/.space.kts +++ b/.space.kts @@ -33,7 +33,7 @@ job("Restart service"){ gitPush { enabled = false } } - container(image = "openjdk:11") { + container(image = "ubuntu") { env["HOST"] = Params("spc-host") env["USER"] = Secrets("spc-webmaster-user") env["ID"] = Secrets("spc-webmaster-id") @@ -43,7 +43,7 @@ job("Restart service"){ content = """ echo ${'$'}ID > id.key chmod 400 id.key - ssh -i id.key -t "${'$'}USER@${'$'}HOST" "systemctl restart sciprog-site" + ssh -i id.key -o StrictHostKeyChecking=no -t "${'$'}USER@${'$'}HOST" "systemctl restart sciprog-site" """.trimIndent() } }