mirror of
https://github.com/drone/drone-kaniko.git
synced 2026-06-14 05:12:26 +08:00
ed6f3c5bf4
* add digest as output variable for kaniko plugin
13 lines
224 B
Go
13 lines
224 B
Go
package output
|
|
|
|
import (
|
|
"github.com/joho/godotenv"
|
|
)
|
|
|
|
func WritePluginOutputFile(outputFilePath, digest string) error {
|
|
output := map[string]string{
|
|
"digest": digest,
|
|
}
|
|
return godotenv.Write(output, outputFilePath)
|
|
}
|