-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAML is not parsed correctly #98
Comments
HI @blampe . Sorry I haven't had time to work on this action before. So we have a bunch of things here. Let me try to summarize and understand them:
|
It's been a while and I don't have the repo in front of me any more, so I'm going by my best recollection.
This log line shows up which (IIRC) kills the whole build because we're using Your points 2 and 3 are essentially the same thing. Specifically, something like this (which is valid YAML) wouldn't be handled correctly by the tool:
|
Thanks for your prompt answer @blampe |
I originally discovered this as a bug where a docker-compose file containing
image:
would also require settingbuild: context:
For example, this docker-compose file should build successfully:
using this workflow:
however it fails with the following:
Expanding the docker-compose to
resolves the issue, but this should not be needed -- we have all of the information we need to build the image.
After poking around more I realized this is due to how the tool attempts to parse YAML, which ultimately creates a number of additional bugs:
foo
example above causes a failure withFailed to get service name
, because the parser doesn't account for inconsistent indentation levels (valid in YAML).image: nginx # ignore me
attempts to fetch an image callednginx # ignore me
from the registry.Instead of trying to re-implement YAML parsing, the tool should instead consume the compose file via an existing YAML parser. This would simplify service & registry discovery and make for a more user-friendly API.
The text was updated successfully, but these errors were encountered: