Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly set ownership of /workspace in CI runs #167

Merged

Conversation

jnschaeffer
Copy link
Contributor

@jnschaeffer jnschaeffer commented Aug 30, 2023

It appears that newer Ubuntu runners check out code as UID 1001, which breaks CI as the default vscode user in dev containers is UID 1000 (see devcontainers/ci#257). This PR addresses that issue by explicitly running sudo chown to make the vscode user own /workspace.

This commit disables caching of dev container CI images. It's sort of
a hack because our CI started failing with weird permissions issues so
we want to see if busting the cache fixes that.

Signed-off-by: John Schaeffer <[email protected]>
@jnschaeffer jnschaeffer requested review from a team as code owners August 30, 2023 20:07
@jnschaeffer jnschaeffer changed the title Don't cache dev container CI image Explicitly set ownership of /workspace in CI runs Aug 30, 2023
@jnschaeffer jnschaeffer merged commit dce3403 into infratographer:main Aug 30, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants