Skip to content

CLI tool that accepts a file path to a Circle CI YAML configuration file and outputs a list of images used in it.

License

Notifications You must be signed in to change notification settings

dimarenich/circleCIYAMLConfigurationParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

CircleCI YAML configuration file parser

CLI tool that accepts a file path to a CircleCI YAML configuration file and outputs a list of images used in it.


Requirements:

  • Read input a file path from Stdin
    • without quotes
    • with quotes
    • with spaces
  • Support CircleCI configuration file
    • Version
      • v2.1 - Cloud, Server 3
      • v2.0 - Server 2
    • File formats - YAML, YML
  • Output a list of images from the configuration file to Stdout
    • Sorted by <image name>:<version TAG>
      • <image name>
        • ascending alphabetical order
      • <version TAG>
        • descending sort
        • current and latest on top
        • numeric above
    • Every image from a new line
  • Log errors return to Stderr when
    • file path is not provided
    • file path is not found
    • image in file is not found

About

CLI tool that accepts a file path to a Circle CI YAML configuration file and outputs a list of images used in it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published