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

Docker: pull image before building #30614

Merged
merged 3 commits into from
Dec 5, 2023
Merged

Docker: pull image before building #30614

merged 3 commits into from
Dec 5, 2023

Conversation

jnewb1
Copy link
Contributor

@jnewb1 jnewb1 commented Dec 5, 2023

to prevent cache invalidation across buildjet/github

@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:20.04@sha256:ed4a42283d9943135ed87d4ee34e542f7f5ad9ecf2f244870e23122f703f91c2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about pulling the latest? we don't want to have to manually update this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ubuntu:20.04 should pull the latest version, but github has locally cached versions that seem to override this. I'll see if I can find a better way to do this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we docker pull it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, yea I think we just needed to add --pull to buildx build

@jnewb1 jnewb1 changed the title Docker: pin to a version Docker: pull image before building Dec 5, 2023
@jnewb1 jnewb1 marked this pull request as ready for review December 5, 2023 23:47
@jnewb1 jnewb1 merged commit f32e3ae into master Dec 5, 2023
2 checks passed
@jnewb1 jnewb1 deleted the debug-docker-version branch December 5, 2023 23:48
@jnewb1
Copy link
Contributor Author

jnewb1 commented Dec 6, 2023

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