Merge pull request #7 from drone/fix_label

Fix label usage
This commit is contained in:
Shubham Agrawal 2021-01-18 21:15:01 +05:30 committed by GitHub
commit 428642719b
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ func (p Plugin) Exec() error {
}
// Set the labels
for _, label := range p.Build.Labels {
cmdArgs = append(cmdArgs, fmt.Sprintf("--label %s", label))
cmdArgs = append(cmdArgs, fmt.Sprintf("--label=%s", label))
}
if p.Build.Target != "" {