Skip to content

build: replace absolute /tmp with runner context temp dir #21801

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

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

dvdksn
Copy link
Contributor

@dvdksn dvdksn commented Jan 13, 2025

Replaces the use of an absolute path for /tmp in github actions examples with
a temporary directory defined by the runner context. Using the runner.temp
directory ensures that the temp directory is properly cleaned up after the job
ends, avoiding situations where an absolute path like /tmp would accumulate
data, eventually resulting in build errors (on self-hosted runners).

@dvdksn dvdksn requested a review from crazy-max as a code owner January 13, 2025 16:07
@github-actions github-actions bot added the area/build Relates to Dockerfiles or docker build command label Jan 13, 2025
Copy link

netlify bot commented Jan 13, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 7bd2b73
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/67853a27d117700008f9e74e
😎 Deploy Preview https://deploy-preview-21801--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dvdksn dvdksn merged commit b40e4e7 into docker:main Jan 13, 2025
14 checks passed
@dvdksn dvdksn deleted the gha-runner-tmp-dir branch January 13, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Relates to Dockerfiles or docker build command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi-Platform image with GitHub Actions examples using /tmp
2 participants