From 0bbdc9adbf7c8cff995fa77b8bba0e000c81c114 Mon Sep 17 00:00:00 2001 From: Roland Date: Tue, 26 Dec 2023 00:47:24 +0100 Subject: [PATCH] Add after script to hard remove cache. --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b726f334..f4b1e73f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -92,6 +92,8 @@ deploy_live: script: - docker compose -f docker-compose.conversis.yml -p $SHORTCODE1 up -d --remove-orphans - docker exec $SHORTCODE1-web chown www-data:www-data -R /var/www/html/var/ + after_script: + - docker exec $SHORTCODE1-web rm -rf /var/www/html/var/cache/* environment: name: live url: https://$URL