1
0
forked from SPC/spc-site
varvara_kaplenko/.space.kts

30 lines
908 B
Plaintext
Raw Normal View History

2022-05-22 16:52:36 +03:00
job("Deploy") {
2022-05-25 18:40:23 +03:00
startOn {
gitPush { enabled = false }
2022-05-22 16:52:36 +03:00
}
2022-05-25 18:40:23 +03:00
2022-06-19 14:18:44 +03:00
container(image = "mipt-npm.registry.jetbrains.space/p/mipt-npm/containers/kotlin-ci:1.0.2") {
env["SPC_HOST"] = Params("spc-host")
env["SPC_USER"] = Secrets("spc-webmaster.key-user")
env["SPC_ID"] = Secrets("spc-webmaster.key-id")
2022-05-25 21:23:56 +03:00
kotlinScript { api ->
2022-06-19 14:18:44 +03:00
api.gradlew("uploadDistribution")
api.gradlew("reloadDistribution")
2022-05-22 16:52:36 +03:00
}
}
2022-06-15 19:29:59 +03:00
}
job("Restart service"){
startOn {
gitPush { enabled = false }
}
2022-06-19 14:18:44 +03:00
container(image = "mipt-npm.registry.jetbrains.space/p/mipt-npm/containers/kotlin-ci:1.0.2") {
env["SPC_HOST"] = Params("spc-host")
env["SPC_USER"] = Secrets("spc-webmaster.key-user")
env["SPC_ID"] = Secrets("spc-webmaster.key-id")
kotlinScript { api ->
api.gradlew("reloadDistribution")
2022-06-15 19:29:59 +03:00
}
}
2022-05-22 16:52:36 +03:00
}