Fix "--cache-ttl" flag missing unit in duration (#35)

This commit is contained in:
JimZhang 2022-02-07 21:43:29 +08:00 committed by GitHub
parent 39f3398dfe
commit d381ac6700
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ func (p Plugin) Exec() error {
}
if p.Build.CacheTTL != 0 {
cmdArgs = append(cmdArgs, fmt.Sprintf("--cache-ttl=%d", p.Build.CacheTTL))
cmdArgs = append(cmdArgs, fmt.Sprintf("--cache-ttl=%dh", p.Build.CacheTTL))
}
if p.Build.DigestFile != "" {