Sorry if this has been asked a lot, but I just realized deploying changes out of the file system (instead of the Git repo) doesn’t sync removed files.
For example, I’ve deployed some files to an S3 bucket in my pipeline. If I delete one of those files from the repo that deletion isn’t played on the S3 and the file remains. I don’t think I can rely on deploying from the Git repo because we want our build process to compress these images before sending it to the server.
How are people working around this? Struggling on how to get this working when files we deploy are modified from a build process in the pipeline.