only lint docker pipelines

This commit is contained in:
Brad Rydzewski 2019-05-20 11:26:46 -07:00
parent 7441be0ed5
commit e6f1eaff9d
2 changed files with 9 additions and 3 deletions

View File

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [1.0.9] - 2019-05-20
### Added
- Only lint resources of kind pipeline and of type docker, by [@bradrydzewski](https://github.com/bradrydzewski).
## [1.0.8] - 2019-04-13
### Added
- Support Cron job name in When clause, by [@bradrydzewski](https://github.com/bradrydzewski).

View File

@ -56,12 +56,14 @@ func checkPipelines(manifest *yaml.Manifest, trusted bool) error {
if err != nil {
return err
}
if v.Kind == "pipeline" && (v.Type == "" || v.Type == "docker") {
err = checkPipeline(v, trusted)
if err != nil {
return err
}
}
}
}
return nil
}