Skip to content

Instantly share code, notes, and snippets.

@joan38
Last active June 18, 2018 14:50
Show Gist options
  • Select an option

  • Save joan38/1ceaec88d08946eb5e1fd2877236bc08 to your computer and use it in GitHub Desktop.

Select an option

Save joan38/1ceaec88d08946eb5e1fd2877236bc08 to your computer and use it in GitHub Desktop.
object Orkestra extends OrkestraServer with GithubHooks with CronTriggers {
lazy val board = Folder("Orkestra")(
PullRequestChecks.board,
CreateEnvironment.board,
PublishBackend.board,
DeployBackend.board,
PublishAndDeploy.board,
CopyData.board
)
lazy val jobs = Set(
PullRequestChecks.job,
CreateEnvironment.job,
PublishBackend.job,
DeployBackend.job,
PublishAndDeploy.job,
CopyData.job
)
lazy val githubTriggers = Set(
PullRequestTrigger(Repository("myOrganisation/myRepo"), PullRequestChecks.job)(),
BranchTrigger(Repository("myOrganisation/myRepo"), "master", PublishAndDeploy.job)("staging")
)
lazy val cronTriggers = Set(
CronTrigger("0 5 * * 1", CopyData.job)("prod", "staging")
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment