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"