From 09d3fa6a6830320533c8dcaff87d5423f20798c7 Mon Sep 17 00:00:00 2001 From: AndreyKoltsov1997 Date: Wed, 18 Jan 2023 22:05:33 +0100 Subject: [PATCH] Add login into registry in order to have pull access from private repositories within build configuration. --- .../build/TeamCityScheduledImageBuildLinux.kts | 10 ++++++++++ .../build/TeamCityScheduledImageBuildWindows.kts | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.teamcity/hosted/scheduled/build/TeamCityScheduledImageBuildLinux.kts b/.teamcity/hosted/scheduled/build/TeamCityScheduledImageBuildLinux.kts index e4266ef47..1b2b2d8a2 100644 --- a/.teamcity/hosted/scheduled/build/TeamCityScheduledImageBuildLinux.kts +++ b/.teamcity/hosted/scheduled/build/TeamCityScheduledImageBuildLinux.kts @@ -5,6 +5,7 @@ import jetbrains.buildServer.configs.kotlin.v2019_2.AbsoluteId import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType import jetbrains.buildServer.configs.kotlin.v2019_2.FailureAction import jetbrains.buildServer.configs.kotlin.v2019_2.ReuseBuilds +import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.dockerSupport import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.DockerCommandStep import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.dockerCommand @@ -58,4 +59,13 @@ object TeamCityScheduledImageBuildLinux : BuildType({ } } } + + features { + dockerSupport { + cleanupPushedImages = true + loginToRegistry = on { + dockerRegistryId = "PROJECT_EXT_774" + } + } + } }) diff --git a/.teamcity/hosted/scheduled/build/TeamCityScheduledImageBuildWindows.kts b/.teamcity/hosted/scheduled/build/TeamCityScheduledImageBuildWindows.kts index 453d92946..a00125dff 100644 --- a/.teamcity/hosted/scheduled/build/TeamCityScheduledImageBuildWindows.kts +++ b/.teamcity/hosted/scheduled/build/TeamCityScheduledImageBuildWindows.kts @@ -5,6 +5,7 @@ import jetbrains.buildServer.configs.kotlin.v2019_2.AbsoluteId import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType import jetbrains.buildServer.configs.kotlin.v2019_2.FailureAction import jetbrains.buildServer.configs.kotlin.v2019_2.ReuseBuilds +import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.dockerSupport import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.DockerCommandStep import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.dockerCommand @@ -60,4 +61,13 @@ object TeamCityScheduledImageBuildWindows : BuildType({ } } } + + features { + dockerSupport { + cleanupPushedImages = true + loginToRegistry = on { + dockerRegistryId = "PROJECT_EXT_774" + } + } + } })