From 14719936fcd39c9613747a8bd51f8f6e18857132 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Wed, 1 Mar 2023 20:47:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=B4=E5=83=8F=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=BC=96=E7=A0=81=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- Dockerfile | 2 +- data/authors/default.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index d810c84..a9f8b32 100644 --- a/.drone.yml +++ b/.drone.yml @@ -194,7 +194,7 @@ steps: path: /var/run/docker.sock commands: - docker pull docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-deps:${DRONE_BRANCH}${DRONE_TAG}-amd64 - - docker build --pull=true -t docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-upload:${DRONE_COMMIT_SHA:0:8} --cache-from docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-deps:${DRONE_BRANCH}${DRONE_TAG}-amd64 . + - docker build --pull=true --target upload -t docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-upload:${DRONE_COMMIT_SHA:0:8} --cache-from docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-deps:${DRONE_BRANCH}${DRONE_TAG}-amd64 . - docker run --rm -t -e FTP_ACCOUNT=$${FTP_ACCOUNT} -e FTP_PASSWORD=$${FTP_PASSWORD} -e FTP_HOST=$${FTP_HOST} docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-upload:${DRONE_COMMIT_SHA:0:8} environment: DOCKER_BUILDKIT: "1" diff --git a/Dockerfile b/Dockerfile index 2fdd6d5..7cd40cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,4 +32,4 @@ FROM alpine:latest as upload RUN apk add lftp WORKDIR /app COPY --from=export /app/out ./ -CMD lftp -u "${FTP_ACCOUNT},${FTP_PASSWORD}" "${FTP_HOST}" -e 'set ftp:ssl-allow off && set use-feat no && mirror -R . ./WEB && exit' \ No newline at end of file +CMD lftp -u "${FTP_ACCOUNT},${FTP_PASSWORD}" "${FTP_HOST}" -e 'set ftp:ssl-allow off && set use-feat no && mirror -c -R --use-pget-n=10 . ./WEB && exit' \ No newline at end of file diff --git a/data/authors/default.md b/data/authors/default.md index be7823a..11b616b 100644 --- a/data/authors/default.md +++ b/data/authors/default.md @@ -1,6 +1,6 @@ --- name: Ivan Li -avatar: https://pan.ivanli.cc/api/v3/file/source/1234/%E5%A4%B4%E5%83%8F.png?sign=xIgy54DyFRYupxjZJbK02HmpKX8C53YR-O0I18Rxm70%3D%3A0 +avatar: https://pan.ivanli.cc/api/v3/file/source/1234/头像.png?sign=xIgy54DyFRYupxjZJbK02HmpKX8C53YR-O0I18Rxm70%3D%3A0 occupation: Web Full Stack Developer email: master@ivanli.cc github: https://github.com/IvanLi-CN