Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix skipping templates for Drone 1.x #132

Merged
merged 12 commits into from
Apr 28, 2020
Next Next commit
print warning message when users skip a yaml file
  • Loading branch information
tonglil committed Apr 23, 2020
commit 67eae313beb01fec47a02d6d7676d7c3b20831f4
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ func renderTemplates(c *cli.Context, templateData map[string]interface{}, secret
// YAML files path for kubectl
for t, content := range mapping {
if t == "" {
log("Warning: skipping template %s because it was set to be ignored\n", t)
continue
}

Expand Down