|
|
@@ -236,6 +236,9 @@ func (s *composeService) preChecks(project *types.Project, options api.PublishOp
|
|
|
if ok, err := s.checkOnlyBuildSection(project); !ok || err != nil {
|
|
|
return false, err
|
|
|
}
|
|
|
+ if options.AssumeYes {
|
|
|
+ return true, nil
|
|
|
+ }
|
|
|
bindMounts := s.checkForBindMount(project)
|
|
|
if len(bindMounts) > 0 {
|
|
|
fmt.Println("you are about to publish bind mounts declaration within your OCI artifact.\n" +
|
|
|
@@ -251,9 +254,6 @@ func (s *composeService) preChecks(project *types.Project, options api.PublishOp
|
|
|
return false, err
|
|
|
}
|
|
|
}
|
|
|
- if options.AssumeYes {
|
|
|
- return true, nil
|
|
|
- }
|
|
|
detectedSecrets, err := s.checkForSensitiveData(project)
|
|
|
if err != nil {
|
|
|
return false, err
|