Support GitLab CI's 'image' dictionary format #230
Labels
enhancement
gitlab-ci
Issues related to compatibility with .gitlab-ci.yml
starter-bug
A good bug for new contributors
GitLab CI supports both a bare string and a dictionary for the
image
key. This is their reference for the possible values of animage
key. Scuba should support this format (as much as it is able) so that a developer can!from_yaml .gitlab-ci.yml myjob.image
without concern of Scuba not being able to understand the dictionary and its keys.Some examples of legitimate uses of
image
according to GitLab's documentation:Bare string
Dictionary with image name:
Dictionary with entrypoint:
Dictionary with "pull policy" (can have value
always
,if-not-present
, ornever
)Dictionary with pull policy array
I don't know if Scuba should to fully support the
pull_policy
directive (in the sense that it obeys the policy), but at a minimum I think Scuba shouldn't error out if it encounters that directive.The text was updated successfully, but these errors were encountered: