Compare commits

..

2 Commits

Author SHA1 Message Date
Ompragash Viswanathan 3408e961b0 Support new input ignore_paths to all the supported versions of Kaniko 2025-02-07 11:41:45 +05:30
Ompragash Viswanathan bae2414e0a add new input ignore_paths to accept multiple values 2025-02-07 11:31:04 +05:30
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -353,7 +353,7 @@ func main() {
Usage: "Path to ignore during the build.",
EnvVar: "PLUGIN_IGNORE_PATH",
},
cli.StringSliceFlag{
cli.StringFlag{
Name: "ignore-paths",
Usage: "Path to ignore during the build.",
EnvVar: "PLUGIN_IGNORE_PATHS",
+8 -7
View File
@@ -483,13 +483,14 @@ func (p Plugin) Exec() error {
}
}
p.Output.OutputFile = os.Getenv("DRONE_OUTPUT")
var tarPath string
if p.Build.TarPath != "" {
tarPath = getTarPath(p.Build.TarPath)
}
if err = output.WritePluginOutputFile(p.Output.OutputFile, getDigest(p.Build.DigestFile), tarPath); err != nil {
fmt.Fprintf(os.Stderr, "failed to write plugin output file at path: %s with error: %s\n", p.Output.OutputFile, err)
if p.Output.OutputFile != "" {
var tarPath string
if p.Build.TarPath != "" {
tarPath = getTarPath(p.Build.TarPath)
}
if err = output.WritePluginOutputFile(p.Output.OutputFile, getDigest(p.Build.DigestFile), tarPath); err != nil {
fmt.Fprintf(os.Stderr, "failed to write plugin output file at path: %s with error: %s\n", p.Output.OutputFile, err)
}
}
return nil