Skip to content

Commit

Permalink
feat(ci): Added back-end target deployment job into .space.kts...
Browse files Browse the repository at this point in the history
  • Loading branch information
UnoYakshi authored and Space Cloud committed Dec 3, 2023
1 parent 9b08322 commit 7738d93
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .space.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,15 @@
*/

job("Hello World!") {
container(displayName = "Say Hello", image = "hello-world")
container("amazoncorretto:17-alpine") {
kotlinScript { api ->
api.space().projects.automation.deployments.start(
project = api.projectIdentifier(),
targetIdentifier = TargetIdentifier.Key("digital-ocean-back-end"),
version = "1.0.0",
// automatically update deployment status based on a status of a job
syncWithAutomationJob = true
)
}
}
}

0 comments on commit 7738d93

Please sign in to comment.