-
From the documentation of creating an action you can use a docker-image instead of a Dockerfilehttps://help.github.com/en/articles/metadata-syntax-for-github-actions#image This works fine, and greatly increases the speed of workflows. But when a Dockerfile is present in the repository, the Dockerfile is used instead. The workaround seems to be to rename the Dockerfile. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Hi @judoole, Thank you for being here, and apologies for the delay in response. We appreciate you taking the time to report this, are you still having the same issue? |
Beta Was this translation helpful? Give feedback.
-
No stress @andreagriffiths11 The workaround does work, so there was no major worries. That thing has unfortunately been rewritten, so it’s a bit cumbersome to recreate for me again. More of a heads up to the dev-team or whomever else stumbles upon the same issue. |
Beta Was this translation helpful? Give feedback.
-
@judoole Thank you for reporting this bug. We have fixed and the updated runner should now be out to all production. I apologize for the inconvenience. |
Beta Was this translation helpful? Give feedback.
-
@chrispat This bug seems to have resurfaced:
Which then fails because it actually uses the |
Beta Was this translation helpful? Give feedback.
-
The original issue was around the dockerfile being used when an image was specified if a dockerfile was present in the repo. It sounds like you are seeing the wrong dockerfile is being used. Could you provide a link to a run showcasing this issue or provide your action.yml runs section and the workflow showing how you invoke the action? It looks like you are running a local action via
|
Beta Was this translation helpful? Give feedback.
-
Indeed it’s a different situation but it seemed to me to be the same error, that In |
Beta Was this translation helpful? Give feedback.
-
This is still happening for me. If there’s a Dockerfile in the same folder as a action.yml, then the run.image key will be completely ignored. In fact, as long as a Dockerfile is in the same folder, you can omit the runs.image key altogether. Depsite the documentation saying that runs.image is required. |
Beta Was this translation helpful? Give feedback.
@judoole Thank you for reporting this bug. We have fixed and the updated runner should now be out to all production.
I apologize for the inconvenience.