In GitLab there seem to be some sort of build cache.
For example, I have a job which builds and tags a docker image. The job succeeds and build log looks normal, but the image isn't actually created in the runner. Same thing with files: writing to file, which doesn't exist after job finishes. I suspect the build uses some kind of cache, as it executes so fast in these scenarios.
This behavior seems to manifest most often with detached pipelines, tag pipelines and when pipelines points to same commit via different refs in general.
How do I disable job caching and force the side effects to happen?