update CD
This commit is contained in:
parent
2ed8586cb1
commit
98ad36d777
@ -1,3 +1,5 @@
|
|||||||
|
import circlet.pipelines.script.put
|
||||||
|
|
||||||
job("Deploy") {
|
job("Deploy") {
|
||||||
startOn {
|
startOn {
|
||||||
gitPush { enabled = false }
|
gitPush { enabled = false }
|
||||||
@ -6,17 +8,18 @@ job("Deploy") {
|
|||||||
container(image = "openjdk:11") {
|
container(image = "openjdk:11") {
|
||||||
kotlinScript { api ->
|
kotlinScript { api ->
|
||||||
api.gradlew("installDist")
|
api.gradlew("installDist")
|
||||||
|
api.fileShare().put(java.io.File("build/installDist"))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
container(image = "openjdk:11") {
|
||||||
env["HOST"] = Params("spc-host")
|
env["HOST"] = Params("spc-host")
|
||||||
env["USER"] = Secrets("spc-webmaster-user")
|
env["USER"] = Secrets("spc-webmaster-user")
|
||||||
env["ID"] = Secrets("spc-webmaster-id")
|
env["ID"] = Secrets("spc-webmaster-id")
|
||||||
|
|
||||||
shellScript {
|
shellScript {
|
||||||
interpreter = "/bin/bash"
|
interpreter = "/bin/bash"
|
||||||
content = """
|
content = "echo \$ID | ssh -i /dev/stdin -r /mnt/space/share/spc-site/ \"\$USER@\$HOST:/opt\""
|
||||||
ls -la
|
|
||||||
""".trimIndent()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user