action-debian-package icon indicating copy to clipboard operation
action-debian-package copied to clipboard

Let caller pass in extra options to `docker create`

Open sebastiankuzminsky opened this issue 3 years ago • 1 comments

The "normal" way to run Github Actions in docker is to use jobs.<job_id>.container. This lets the user pass extra args to docker create using jobs.<job_id>.container.options. We in the LinuxCNC project use this to enable some extra capabilities we need for testing inside the container: https://github.com/LinuxCNC/linuxcnc/blob/master/.github/workflows/ci.yml#L66-L75.

But the Github ubuntu-* runners do not have qemu-user-static installed, so you can only run docker containers of the native CPU architecture.

I really want to use action-debian-package because it installs qemu-user-static, so it supports building on different CPU architectures. But it doesn't support options, so our test suite can't run.

This issue is a feature request: please add a way for the user to specify extra options to docker create.

sebastiankuzminsky avatar Nov 15 '22 17:11 sebastiankuzminsky

Will accept a PR adding this.

dawidd6 avatar Jan 06 '24 12:01 dawidd6