Skip to content

Commit 5170040

Browse files
feat: Docker pull env driven (#5767)
* useDockerApiToGetDigest menv driven flag to control pulling image either using docker pull or docker API * UseAppDockerConfigForPrivateRegistries in workflow request * revert * revert
1 parent ff89a26 commit 5170040

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

env_gen.md

+1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@
259259
| USE_CASBIN_V2 | false | |
260260
| USE_CUSTOM_HTTP_TRANSPORT | false | |
261261
| USE_DEPLOYMENT_CONFIG_DATA | false | |
262+
| USE_DOCKER_API_TO_GET_DIGEST | false | |
262263
| USE_EXTERNAL_NODE | false | |
263264
| USE_GIT_CLI | false | |
264265
| USE_IMAGE_TAG_FROM_GIT_PROVIDER_FOR_TAG_BASED_BUILD | false | |

pkg/pipeline/CiService.go

+1
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ func (impl *CiServiceImpl) buildWfRequestForCiPipeline(pipeline *pipelineConfig.
743743
PluginArtifactStage: pluginArtifactStage,
744744
ImageScanMaxRetries: impl.config.ImageScanMaxRetries,
745745
ImageScanRetryDelay: impl.config.ImageScanRetryDelay,
746+
UseDockerApiToGetDigest: impl.config.UseDockerApiToGetDigest,
746747
}
747748
if pipeline.App.AppType == helper.Job {
748749
workflowRequest.AppName = pipeline.App.DisplayName

pkg/pipeline/types/CiCdConfig.go

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ type CiCdConfig struct {
141141
ExtBlobStorageSecretName string `env:"EXTERNAL_BLOB_STORAGE_SECRET_NAME" envDefault:"blob-storage-secret"`
142142
UseArtifactListingQueryV2 bool `env:"USE_ARTIFACT_LISTING_QUERY_V2" envDefault:"true"`
143143
UseImageTagFromGitProviderForTagBasedBuild bool `env:"USE_IMAGE_TAG_FROM_GIT_PROVIDER_FOR_TAG_BASED_BUILD" envDefault:"false"` // this is being done for https://github.com/devtron-labs/devtron/issues/4263
144+
UseDockerApiToGetDigest bool `env:"USE_DOCKER_API_TO_GET_DIGEST" envDefault:"false"`
144145
}
145146

146147
type CiConfig struct {

pkg/pipeline/types/Workflow.go

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ type WorkflowRequest struct {
144144
Scope resourceQualifiers.Scope
145145
BuildxCacheModeMin bool `json:"buildxCacheModeMin"`
146146
AsyncBuildxCacheExport bool `json:"asyncBuildxCacheExport"`
147+
UseDockerApiToGetDigest bool `json:"useDockerApiToGetDigest"`
147148
}
148149

149150
func (workflowRequest *WorkflowRequest) updateExternalRunMetadata() {

0 commit comments

Comments
 (0)