Update CD

This commit is contained in:
Alexander Nozik 2022-06-15 16:53:13 +00:00 committed by Space
parent 8a1deab1f7
commit 679d993b6d

View File

@ -41,9 +41,9 @@ job("Restart service"){
shellScript { shellScript {
interpreter = "/bin/bash" interpreter = "/bin/bash"
content = """ content = """
echo ${'$'}ID > id.key echo ${'$'}ID > id_ed25519
chmod 400 id.key chmod 400 id_ed25519
ssh -i id.key -o StrictHostKeyChecking=no -t "${'$'}USER@${'$'}HOST" "systemctl restart sciprog-site" ssh -i id_ed25519 -o StrictHostKeyChecking=no -t "${'$'}USER@${'$'}HOST" "systemctl restart sciprog-site"
""".trimIndent() """.trimIndent()
} }
} }