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

30 lines
788 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:25:29 +03:00
container(image = "gradle:jdk17-alpine") {
2022-06-19 14:18:44 +03:00
env["SPC_HOST"] = Params("spc-host")
2022-06-19 14:27:52 +03:00
env["SPC_USER"] = Secrets("spc-webmaster-user")
env["SPC_ID"] = Secrets("spc-webmaster-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:25:29 +03:00
container(image = "gradle:jdk17-alpine") {
2022-06-19 14:18:44 +03:00
env["SPC_HOST"] = Params("spc-host")
2022-06-19 14:27:52 +03:00
env["SPC_USER"] = Secrets("spc-webmaster-user")
env["SPC_ID"] = Secrets("spc-webmaster-id")
2022-06-19 14:18:44 +03:00
kotlinScript { api ->
api.gradlew("reloadDistribution")
2022-06-15 19:29:59 +03:00
}
}
2022-05-22 16:52:36 +03:00
}