From d156e04109c069fa00381fb513e5d1447b496408 Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Fri, 3 Oct 2025 20:51:37 +0100 Subject: [PATCH] Fix: Force Docker build without cache in CI/CD pipeline --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 869a877..c6974ab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,8 +55,8 @@ deploy:vps: - export VERSION="${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}" - echo "Deploying version $VERSION to VPS" - echo "Building images from source..." - - docker build -t littleshop:$VERSION . - - docker build -t telebot:$VERSION -f Dockerfile.telebot . + - docker build --no-cache -t littleshop:$VERSION . + - docker build --no-cache -t telebot:$VERSION -f Dockerfile.telebot . - echo "Copying images to VPS via SSH..." - docker save littleshop:$VERSION | ssh -i /tmp/deploy_key -p "$VPS_PORT" "$VPS_USER@$VPS_HOST" "docker load"