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

Add support for pre-built docker image (update only app layer) #407

Merged
merged 3 commits into from
Dec 26, 2020

Conversation

glensc
Copy link
Contributor

@glensc glensc commented Dec 26, 2020

Problem is that --cache-from has no effect in GitHub Actions builds. The builds are always full, compiling pecl/mongodb from source:

Example:

Let's save (some) green energy and don't build the extension from the source on each pull request.
This results in a bit bigger image, as the source is added twice to layers, but the image is still accurate.

Example:

The --cache-from seems to have no effect in GitHub actions,
so switch to manual layers specification.
This ensures that files removed on a branch do have effect
@glensc glensc added this to the Next milestone Dec 26, 2020
@glensc glensc self-assigned this Dec 26, 2020
@glensc glensc merged commit fdeac1a into master Dec 26, 2020
@glensc glensc deleted the pre-build-docker branch December 26, 2020 07:25
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.

1 participant