Is it possible to run github actions inside docker container like jenkins?
1 Answer
There are two aspects:
- can github actions run containers?
- Can github actions run container like jenkins
To answer the former, by default Github actions do run in containers. From the docs:
Your workflow contains one or more jobs which can run in sequential order or in parallel. Each job will run inside its own virtual machine runner, or inside a container, and has one or more steps that either run a script that you define or run an action, which is a reusable extension that can simplify your workflow.
(emphasis my own)
There is also a dedicated page for creating container-based runners
For the latter part of the question, it's not quite clear what you mean by "like Jenkins", but the Github Actions guide should provide the relevant context.