Hello,
I have a Symfony 4 application that i publish with gitlab CI with lftp.
It works well but i don’t know how to delete, after the mirroring, the /var/cache folder of symfony on the remote folder ? Have you got an idea please ?
My .gitlab-ci.yml file :
deploiement:
stage: deploy
only:
- master
script:
- apt-get update -qq && apt-get install -y -qq lftp
- lftp -c "set ftp:ssl-allow no; open -u xxxx,yyyy zzzz; mirror -Rev ./config ./config --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/;mirror -Rev ./src ./src --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/;mirror -Rev ./templates ./templates --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/;mirror -Rev ./public ./public --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/;"