Update CD

This commit is contained in:
Alexander Nozik 2022-05-25 18:40:23 +03:00
parent 060583a418
commit e8b9a35a61
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357

View File

@ -1,13 +1,14 @@
job("Deploy") {
container(displayName = "Build and install", image = "openjdk:11") {
kotlinScript { api ->
// here can be your complex logic
api.gradlew("installDist")
}
startOn {
gitPush { enabled = false }
}
container(displayName = "Deploy", image = "openjdk:11") {
env["HOST"] = Params("sciprog-host")
env["ID"] = Secrets("sciprog-webmaster-id")
gradlew("openjdk:11", "installDist")
container(displayName = "Deploy via scp", image = "openjdk:11") {
env["HOST"] = Params("spc-host")
env["USER"] = Secrets("spc-webmaster-user")
env["ID"] = Secrets("spc-webmaster-id")
shellScript {
interpreter = "/bin/bash"