2

Is it possible to run github actions inside docker container like jenkins?

1 Answer 1

1

There are two aspects:

  1. can github actions run containers?
  2. 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.