Update CD
This commit is contained in:
parent
060583a418
commit
e8b9a35a61
17
.space.kts
17
.space.kts
@ -1,13 +1,14 @@
|
|||||||
job("Deploy") {
|
job("Deploy") {
|
||||||
container(displayName = "Build and install", image = "openjdk:11") {
|
startOn {
|
||||||
kotlinScript { api ->
|
gitPush { enabled = false }
|
||||||
// here can be your complex logic
|
|
||||||
api.gradlew("installDist")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
container(displayName = "Deploy", image = "openjdk:11") {
|
|
||||||
env["HOST"] = Params("sciprog-host")
|
gradlew("openjdk:11", "installDist")
|
||||||
env["ID"] = Secrets("sciprog-webmaster-id")
|
|
||||||
|
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 {
|
shellScript {
|
||||||
interpreter = "/bin/bash"
|
interpreter = "/bin/bash"
|
||||||
|
Loading…
Reference in New Issue
Block a user