From 404c7cba878eaeaa8240f2f53165bcd48d3e53d6 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Wed, 1 Mar 2023 00:00:12 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=94=AF=E6=8C=81=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=B9=B6=E4=B8=8A=E4=BC=A0=E7=BD=91=E9=A1=B5=E5=88=B0=E6=99=AF?= =?UTF-8?q?=E5=AE=89=E8=99=9A=E6=9C=BA=E3=80=82xN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 11ba448..242900f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -193,11 +193,11 @@ steps: - name: dockersock path: /var/run/docker.sock commands: - - ls /var/run - - stat /var/run/docker.sock - - docker build -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 . + - 'echo "account: $FTP_ACCOUNT"' + - 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 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" FTP_ACCOUNT: from_secret: zzidc_ftp_account FTP_PASSWORD: @@ -237,14 +237,6 @@ steps: 🌐 {{ build.link }} {{/success}} -services: -- name: docker - image: docker:dind - privileged: true - volumes: - - name: dockersock - path: /var/run/docker.sock - volumes: - name: dockersock host: