diff --git a/env_gen.md b/env_gen.md index 187544e5ce1..d6c935a3031 100644 --- a/env_gen.md +++ b/env_gen.md @@ -259,6 +259,7 @@ | USE_CASBIN_V2 | false | | | USE_CUSTOM_HTTP_TRANSPORT | false | | | USE_DEPLOYMENT_CONFIG_DATA | false | | + | USE_DOCKER_API_TO_GET_DIGEST | false | | | USE_EXTERNAL_NODE | false | | | USE_GIT_CLI | false | | | USE_IMAGE_TAG_FROM_GIT_PROVIDER_FOR_TAG_BASED_BUILD | false | | diff --git a/pkg/pipeline/CiService.go b/pkg/pipeline/CiService.go index d16dd55199d..c9607825858 100644 --- a/pkg/pipeline/CiService.go +++ b/pkg/pipeline/CiService.go @@ -743,6 +743,7 @@ func (impl *CiServiceImpl) buildWfRequestForCiPipeline(pipeline *pipelineConfig. PluginArtifactStage: pluginArtifactStage, ImageScanMaxRetries: impl.config.ImageScanMaxRetries, ImageScanRetryDelay: impl.config.ImageScanRetryDelay, + UseDockerApiToGetDigest: impl.config.UseDockerApiToGetDigest, } if pipeline.App.AppType == helper.Job { workflowRequest.AppName = pipeline.App.DisplayName diff --git a/pkg/pipeline/types/CiCdConfig.go b/pkg/pipeline/types/CiCdConfig.go index 50e7d272712..df0f6ebaa50 100644 --- a/pkg/pipeline/types/CiCdConfig.go +++ b/pkg/pipeline/types/CiCdConfig.go @@ -141,6 +141,7 @@ type CiCdConfig struct { ExtBlobStorageSecretName string `env:"EXTERNAL_BLOB_STORAGE_SECRET_NAME" envDefault:"blob-storage-secret"` UseArtifactListingQueryV2 bool `env:"USE_ARTIFACT_LISTING_QUERY_V2" envDefault:"true"` 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 + UseDockerApiToGetDigest bool `env:"USE_DOCKER_API_TO_GET_DIGEST" envDefault:"false"` } type CiConfig struct { diff --git a/pkg/pipeline/types/Workflow.go b/pkg/pipeline/types/Workflow.go index af15733e1c9..cbecb3cd62e 100644 --- a/pkg/pipeline/types/Workflow.go +++ b/pkg/pipeline/types/Workflow.go @@ -144,6 +144,7 @@ type WorkflowRequest struct { Scope resourceQualifiers.Scope BuildxCacheModeMin bool `json:"buildxCacheModeMin"` AsyncBuildxCacheExport bool `json:"asyncBuildxCacheExport"` + UseDockerApiToGetDigest bool `json:"useDockerApiToGetDigest"` } func (workflowRequest *WorkflowRequest) updateExternalRunMetadata() {