Fix directories for new mentors
This commit is contained in:
parent
3e8fe85dcc
commit
99dd3c5727
36
.space.kts
36
.space.kts
@ -1,36 +0,0 @@
|
||||
job("Deploy") {
|
||||
startOn {
|
||||
gitPush { enabled = false }
|
||||
}
|
||||
|
||||
container(image = "gradle:jdk17-alpine") {
|
||||
env["SPC_HOST"] = "{{ project:spc-host }}"
|
||||
env["SPC_USER"] = "{{ project:spc-webmaster-user }}"
|
||||
env["SPC_ID"] = "{{ project:spc-webmaster-id }}"
|
||||
kotlinScript { api ->
|
||||
api.space().projects.automation.deployments.start(
|
||||
project = api.projectIdentifier(),
|
||||
targetIdentifier = TargetIdentifier.Key("spc-site"),
|
||||
version = "current",
|
||||
// automatically update deployment status based on the status of the job
|
||||
syncWithAutomationJob = true
|
||||
)
|
||||
api.gradle("uploadDistribution")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
job("Restart service"){
|
||||
startOn {
|
||||
gitPush { enabled = false }
|
||||
}
|
||||
|
||||
container(image = "gradle:jdk17-alpine") {
|
||||
env["SPC_HOST"] = "{{ project:spc-host }}"
|
||||
env["SPC_USER"] = "{{ project:spc-webmaster-user }}"
|
||||
env["SPC_ID"] = "{{ project:spc-webmaster-id }}"
|
||||
kotlinScript { api ->
|
||||
api.gradle("reloadDistribution")
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user