mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-24 19:10:40 +00:00
only lint docker pipelines
This commit is contained in:
parent
7441be0ed5
commit
e6f1eaff9d
@ -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).
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user