github.com/buildtool/build-tools@v0.2.29-0.20240322150259-6a1d0a553c23/www/docs/ci/teamcity.md (about) 1 # TeamCity 2 [TeamCity] can be configured with a `.teamcity/settings.kts` file in your project. 3 4 ```kotlin 5 import jetbrains.buildServer.configs.kotlin.v2018_2.* 6 import jetbrains.buildServer.configs.kotlin.v2018_2.buildSteps.ScriptBuildStep 7 import jetbrains.buildServer.configs.kotlin.v2018_2.buildSteps.script 8 import jetbrains.buildServer.configs.kotlin.v2018_2.triggers.finishBuildTrigger 9 import jetbrains.buildServer.configs.kotlin.v2018_2.triggers.vcs 10 11 version = "2019.1" 12 13 project { 14 buildType(BuildAndPush) 15 } 16 17 object BuildAndPush : BuildType({ 18 name = "BuildAndPush" 19 20 steps { 21 script { 22 name = "build and push" 23 scriptContent = """ 24 build && push 25 """.trimIndent() 26 dockerImage = "buildtool/buildtools" 27 dockerImagePlatform = ScriptBuildStep.ImagePlatform.Linux 28 dockerPull = true 29 dockerRunParameters = """ 30 -v /var/run/docker.sock:/var/run/docker.sock 31 --rm 32 """.trimIndent() 33 } 34 } 35 36 triggers { 37 vcs {} 38 } 39 }) 40 41 ``` 42 43 [teamcity]: https://www.jetbrains.com/teamcity