redhat-actions / buildah-build

GitHub Action to use 'buildah' to build a container image.
https://github.com/marketplace/actions/buildah-build
MIT License
147 stars 35 forks source link

[QUESTION] Is `containerfiles` attribute supposed to be paths in relative to the path declared in `context` attribute? #134

Open runlevel5 opened 8 months ago

runlevel5 commented 8 months ago

Question

Well I have a Containerfile which resides in a subfolder ./my_app, for docker-compose spec file I simply declare the context: ./my_app and dockerfile: Containerfile. However for buildah-build action, I have to declare the full path for containerfiles: ./my_app/Containerfile. That behaviour caught me by surprise... so wondering if such decision is deliberate or simply it is just an oversight from the onset. Many thanks

lehmanju commented 6 months ago

Can confirm, it's unintuitive in my opinion.

antony-jr commented 2 weeks ago

Yep, wasted 10 mins on this, this should be documented somewhere, I see no proper examples with context.