Git Product home page Git Product logo

Comments (9)

elgohr avatar elgohr commented on June 14, 2024

Hi,
as you can see here #24 (comment) PRs aren't build as "latest", in this way they also don't cache latest.
Makes sense?

from publish-docker-github-action.

alexsotocx avatar alexsotocx commented on June 14, 2024

I see, but it can definitely uses the cache from previous builds, for example the part of the dependencies would not change much between builds but even so it would rebuild it.

Is it possible to make the cache? Being used everywhere?

from publish-docker-github-action.

elgohr avatar elgohr commented on June 14, 2024

I don't see where this would make sense, as you want to build the PR and not (accidentally) parts of master.

from publish-docker-github-action.

alexsotocx avatar alexsotocx commented on June 14, 2024

But for example the first parts where you install the Linux dependencies and the app the packages they don't change often so it's a waste of time. And it takes like 4 mins so is better to use any cache

from publish-docker-github-action.

elgohr avatar elgohr commented on June 14, 2024

So how do you make sure that these dependencies are the latest for this PR?

from publish-docker-github-action.

alexsotocx avatar alexsotocx commented on June 14, 2024

If the Gemfile changes it will also Change the Gemfile.lock so it will invalidate the cache from there on. Regarding the Linux dep we will need to figure it out.

And the same question to you, how will it ensure that on master the cache is invalid.?

Thanks anyway :)

from publish-docker-github-action.

elgohr avatar elgohr commented on June 14, 2024

Please read the documentation again (https://github.com/elgohr/Publish-Docker-Github-Action#cache). At the moment that's your job.

from publish-docker-github-action.

elgohr avatar elgohr commented on June 14, 2024

I guess we can close this?

from publish-docker-github-action.

alexsotocx avatar alexsotocx commented on June 14, 2024

Well it didn't solve my question. Because I want to use the cache in the builds of the PR. The user should have the opportunity to use it everywhere and he has the responsibility to decide when to change the cache or not.

For example I can activate depending of the commit message or not

from publish-docker-github-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.