Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

How to use ghcr.io/xtruder/nix-devcontainer in CI #21

@marionoxt

Description

@marionoxt

Hi! Thanks for this project! It looks like it could be really useful for me! Let's say I want to run my tests in CI, but it shall be in the same docker container (for reproducibility) as the dev environment.

Just doing

runs-on: ubicloud-standard-4
container:
  image: ghcr.io/xtruder/nix-devcontainer
steps:
  ...

does not work and I get an error like this

Run actions/checkout@v4
/usr/bin/docker exec 7c3d2553128f2ceaf8fb81875b418aad7a3161c37e21f6b2a4a03dbc9e25a2a6 sh -c "cat /etc/*release | grep ^ID"
node:fs:2368
return binding.writeFileUtf8(
^

Error: EACCES: permission denied, open '/__w/_temp/_runner_file_commands/save_state_ead7013a-a704-46e3-ad0c-8ad1e8f31191'
at Object.writeFileSync (node:fs:2368:20)
at Object.appendFileSync (node:fs:2449:6)
at Object.issueFileCommand (/__w/_actions/actions/checkout/v4/dist/index.js:3060:8)
at Object.saveState (/__w/_actions/actions/checkout/v4/dist/index.js:2977:31)
at 4866 (/__w/_actions/actions/checkout/v4/dist/index.js:2402:10)
at nccwpck_require (/__w/_actions/actions/checkout/v4/dist/index.js:38194:43)
at 2565 (/__w/_actions/actions/checkout/v4/dist/index.js:150:34)
at nccwpck_require (/__w/_actions/actions/checkout/v4/dist/index.js:38194:43)
at 9210 (/__w/_actions/actions/checkout/v4/dist/index.js:1171:36)
at nccwpck_require (/__w/_actions/actions/checkout/v4/dist/index.js:38194:43) {
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/__w/_temp/_runner_file_commands/save_state_ead7013a-a704-46e3-ad0c-8ad1e8f31191'
}

So it seems that this container is not suited for CI? I can use container: debian:12.1 but it would be nice if I could use the exact same container in CI and dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions