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] ## [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 ## [1.0.8] - 2019-04-13
### Added ### Added
- Support Cron job name in When clause, by [@bradrydzewski](https://github.com/bradrydzewski). - Support Cron job name in When clause, by [@bradrydzewski](https://github.com/bradrydzewski).

View File

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