Created
September 18, 2018 16:17
-
-
Save cdupuis/adb740fb6980adbaf7225eaa478f0c40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const BaseGoals = goals("checks") | |
.plan(version, autofix); | |
const BuildGoals = goals("build") | |
.plan(build).after(autofix, version); | |
const DeployGoals = goals("deploy") | |
.plan(dockerBuild).after(build) | |
.plan(kubernetesDeploy).after(dockerBuild); | |
sdm.addGoalContributions(goalContributors( | |
onAnyPush().setGoals(BaseGoals), | |
whenPushSatisfies(IsMaven).setGoals(BuildGoals), | |
whenPushSatisfies(HasDockerfile).setGoals(DeployGoals), | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment