add deployment configuration

This commit is contained in:
Alexander Nozik 2022-07-07 17:15:51 +00:00 committed by Space
parent 4066712014
commit 95714e4b40

View File

@ -8,6 +8,13 @@ job("Deploy") {
env["SPC_USER"] = Secrets("spc-webmaster-user")
env["SPC_ID"] = Secrets("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 a status of a job
syncWithAutomationJob = true
)
api.gradle("uploadDistribution")
}
}