Update CD

This commit is contained in:
Alexander Nozik 2022-06-15 16:37:21 +00:00 committed by Space
parent 5e1625d98c
commit 4f85177c0a

View File

@ -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()
}
}