1
0
forked from SPC/spc-site

update CD

This commit is contained in:
Alexander Nozik 2022-05-25 17:28:59 +00:00 committed by Space
parent 2ed8586cb1
commit 98ad36d777

View File

@ -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\""
}
}
}