@@ -197,6 +197,7 @@ type WorkflowDagExecutorImpl struct {
197197 argoClientWrapperService argocdServer.ArgoClientWrapperService
198198 pipelineConfigListenerService PipelineConfigListenerService
199199 customTagService CustomTagService
200+ CiCdConfig * types.CiCdConfig
200201}
201202
202203const kedaAutoscaling = "kedaAutoscaling"
@@ -302,6 +303,7 @@ func NewWorkflowDagExecutorImpl(Logger *zap.SugaredLogger, pipelineRepository pi
302303 argoClientWrapperService argocdServer.ArgoClientWrapperService ,
303304 pipelineConfigListenerService PipelineConfigListenerService ,
304305 customTagService CustomTagService ,
306+ CiCdConfig * types.CiCdConfig ,
305307) * WorkflowDagExecutorImpl {
306308 wde := & WorkflowDagExecutorImpl {logger : Logger ,
307309 pipelineRepository : pipelineRepository ,
@@ -378,6 +380,7 @@ func NewWorkflowDagExecutorImpl(Logger *zap.SugaredLogger, pipelineRepository pi
378380 argoClientWrapperService : argoClientWrapperService ,
379381 pipelineConfigListenerService : pipelineConfigListenerService ,
380382 customTagService : customTagService ,
383+ CiCdConfig : CiCdConfig ,
381384 }
382385 config , err := types .GetCdConfig ()
383386 if err != nil {
@@ -1637,12 +1640,13 @@ func (impl *WorkflowDagExecutorImpl) buildWFRequest(runner *pipelineConfig.CdWor
16371640 DataSource : artifact .DataSource ,
16381641 WorkflowId : artifact .WorkflowId ,
16391642 },
1640- OrchestratorHost : impl .config .OrchestratorHost ,
1641- OrchestratorToken : impl .config .OrchestratorToken ,
1642- CloudProvider : impl .config .CloudProvider ,
1643- WorkflowExecutor : workflowExecutor ,
1644- RefPlugins : refPluginsData ,
1645- Scope : scope ,
1643+ OrchestratorHost : impl .config .OrchestratorHost ,
1644+ OrchestratorToken : impl .config .OrchestratorToken ,
1645+ CloudProvider : impl .config .CloudProvider ,
1646+ WorkflowExecutor : workflowExecutor ,
1647+ RefPlugins : refPluginsData ,
1648+ Scope : scope ,
1649+ PullImageUsingDigest : impl .config .PullImageUsingDigest ,
16461650 }
16471651
16481652 extraEnvVariables := make (map [string ]string )
@@ -2958,7 +2962,7 @@ func (impl *WorkflowDagExecutorImpl) TriggerPipeline(overrideRequest *bean.Value
29582962 manifestPushResponse := manifestPushService .PushChart (manifestPushTemplate , ctx )
29592963 if manifestPushResponse .Error != nil {
29602964 impl .logger .Errorw ("Error in pushing manifest to git" , "err" , err , "git_repo_url" , manifestPushTemplate .RepoUrl )
2961- return releaseNo , manifest , err
2965+ return releaseNo , manifest , manifestPushResponse . Error
29622966 }
29632967 pipelineOverrideUpdateRequest := & chartConfig.PipelineOverride {
29642968 Id : valuesOverrideResponse .PipelineOverride .Id ,
@@ -4072,6 +4076,11 @@ func (impl *WorkflowDagExecutorImpl) getReleaseOverride(envOverride *chartConfig
40724076 if strategy != nil {
40734077 deploymentStrategy = string (strategy .Strategy )
40744078 }
4079+
4080+ if impl .CiCdConfig .PullImageUsingDigest {
4081+ imageTag [imageTagLen - 1 ] = fmt .Sprintf ("%s@%s" , imageTag [imageTagLen - 1 ], artifact .ImageDigest )
4082+ }
4083+
40754084 releaseAttribute := app.ReleaseAttributes {
40764085 Name : imageName ,
40774086 Tag : imageTag [imageTagLen - 1 ],
0 commit comments