Continuous Deployment with Docker-compose, image built doesn't include latest updates on server

Hello everyone,

I’m currently using gitlab to build my image and then deploy it on my preproduction server.

All my gitlab-ci steps are passing without any error (test, build and deploy), however when I go into my container I don’t see any of the changes I did to the files that were built on the branch.

It looks like there’s some kind of cache somewhere but I don’t understand where it’s from since I’m removing all my images during deployment with rmi all.

I may be doing something wrong in one of these files but I don’t understand what :

Thanks for your help!

I’m new to gitlab and have taken over some work. I have a similar problem:

  1. Modify code using edit on gitlab
  2. Commit code on gitlab
  3. Run standard pipeline (maybe it goes wrong here?)
  4. Can see ‘latest’ in Docker container repository
  5. Do docker compose down/up on target system, yaml is
  6. gitlab.registryname etc :latest
  7. No error reported but update from code not reflected in container

This must be some simple noob mistake but what?
TIA Hugh