Fix: Force Docker build without cache in CI/CD pipeline

This commit is contained in:
SysAdmin 2025-10-03 20:51:37 +01:00
parent 8075560877
commit d156e04109

View File

@ -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"