feat(ISV-7361): add ENV support to Capo#48
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #48 +/- ##
==========================================
- Coverage 63.76% 62.58% -1.18%
==========================================
Files 9 9
Lines 1217 1259 +42
==========================================
+ Hits 776 788 +12
- Misses 330 355 +25
- Partials 111 116 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
fe2cdd5 to
5abaaa6
Compare
PR Summary by QodoAdd Dockerfile ENV support for Capo variable substitution Description
Diagram
High-Level Assessment
Files changed (6)
|
Signed-off-by: Marek Szymutko <mszymutk@redhat.com>
* ran golangci-lint fmt Signed-off-by: Marek Szymutko <mszymutk@redhat.com>
Signed-off-by: Marek Szymutko <mszymutk@redhat.com>
cf48c54 to
5859392
Compare
bclindner
left a comment
There was a problem hiding this comment.
No real notes here, looks good. Test changes are clean as always. Very glad we can handle the actual substitution w/ imagebuilder, I was really worried we were gonna have to maintain some shaky solution ourselves
There was a problem hiding this comment.
i assume this rename is because we're using this to parse ENV as well as ARG, right?
There was a problem hiding this comment.
Yup, precisely 😄 I tried to state that in the docstring on top
According to the Dockerfile spec, the supported statements are:
from which the bold ones we parse in Capo.
Aproach
I found out that even the env-variable names can be expanded by variables (testing dockerfile below), so I simply reused the code for labels.