docker build with a dind self-hosted runner #1413
smaring
started this conversation in
Show and tell
Replies: 1 comment
-
|
You can define another shell in the workflow. I would recommend against using anything fancy in a direct workflow that depends on a particular shell. Use a repository script instead for that and keep programming logic outside the workflow file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A really basic workflow:
There's nothing fancy in myDockerfile as its just for testing:
Since self-hosted in act asks for a Docker image to do the build I figured I probably need to use a dind image. It doesn't work though:
It says that it can't find bash inside the image, which appears to be a valid complaint:
What you need is dind with bash. Somebody made one, although its a bit out-of-date now. Its easy enough to make your own, but this works:
Beta Was this translation helpful? Give feedback.
All reactions