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

fix: Remove images not present before checking version for docker driver #326

Open
gmpinder opened this issue Jan 10, 2025 · 0 comments
Open
Assignees
Labels
type: bug Something isn't working.

Comments

@gmpinder
Copy link
Member

If an image doesn't set org.opencontainers.image.version with the correct version string, the image gets pulled and ran so that the /etc/os-release file can be read to retrieve the OS version. This can cause issues in Github runners as there is limited space.

Solution

  • if the build driver is docker
    • Check if the image was present beforehand
    • Pull the image
    • Run the version check command in the image
    • If image wasn't present beforehand, remove image before building
@gmpinder gmpinder added the type: bug Something isn't working. label Jan 10, 2025
@gmpinder gmpinder self-assigned this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant