jpribyl / action-docker-layer-caching

🐳 Enable Docker layer caching in GitHub Actions
https://github.com/marketplace/actions/docker-layer-caching
MIT License
59 stars 10 forks source link

use with docker-compose keep using cache even if there is change in Dockerfile #9

Closed andrewvmail closed 2 years ago

andrewvmail commented 2 years ago

I am using this github action with docker-compose -d up. Cache works but the cache doesn't seem to invalidate when I make changes to Dockerfiles that makes up the docker-compose.

jpribyl commented 2 years ago

This is expected behavior because docker-compose does not track changes in a dockerfile.

Can you try it with docker-compose build or docker-compose up --build and see if the issue persists?

andrewvmail commented 2 years ago

It does work with docker-compose up --build i have to use docker-compose up -d --build in my use case since I need it to run as a daemon not in foreground.

Closing thanks alot!

jpribyl commented 2 years ago

Awesome, glad it worked out!