-
Notifications
You must be signed in to change notification settings - Fork 222
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
Disable cache on feature build when --build-no-cache
is passed
#790
Disable cache on feature build when --build-no-cache
is passed
#790
Conversation
--build-no-cache
is passed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes make sense to me, left one comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Left a comment.
@microsoft-github-policy-service agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
@chrmarti or @samruddhikhandale, may you please approve the run of the CI pipeline? 😸 |
2462ae7
to
1d9a38c
Compare
The pipeline failed to install dependencies for the windows run. This is unlikely to be related to my changes. |
Changes
Add
--no-cache
arg to the docker build command that extends the base image with the feature images when--build-no-cache
is passed.Context
The build will always use a cached feature image if it has one. This was making it impossible to replicate a problem in our CI process caused by this issue. Our CI pipeline was failing to install the Azure CLI, but building locally worked fine. The CI pipeline uses GitHub actions, so no cache of the build was available, however, I had cached versions of the image locally and passing the
--build-no-cache
continued to use the cache. I had to remove all the images viadocker images -q "vsc-$MY_IMAGE*" | xargs docker rmi -f
order to get a build representative of my CI environment working locally.Closes #508