From 0549b3c385d8d300ed5ca7d1ba7323cddb8e7f03 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Tue, 28 Feb 2023 21:49:51 +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 | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/.drone.yml b/.drone.yml index ad2cfab..0229ee1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -187,29 +187,13 @@ trigger: - develop steps: - - name: export - image: plugins/docker - settings: - registry: docker-registry.ivanli.cc - username: - from_secret: ivan-docker-username - password: - from_secret: ivan-docker-password - repo: docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-upload - dockerfile: Dockerfile - target: upload - cache_from: - - docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-deps:${DRONE_BRANCH}${DRONE_TAG}-amd64 - tags: - - '${DRONE_COMMIT_SHA:0:8}' - - '${DRONE_BRANCH}${DRONE_TAG}' - - name: upload image: docker:dind volumes: - name: dockersock - path: /var/run/docker.sock + path: /var/run commands: + - docker build -t docker-registry.ivanli.cc/ivan/tailwind-nextjs-blog-upload:${DRONE_COMMIT_SHA:0:8} . - 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: FTP_ACCOUNT: @@ -251,14 +235,3 @@ steps: 🌐 {{ build.link }} {{/success}} -services: - - name: docker - image: docker:dind - privileged: true - volumes: - - name: dockersock - path: /var/run - -volumes: - - name: dockersock - temp: {}