From 38ef55595ed0440f89616bb8bf664703d73a9054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BA=AE=E4=BA=AE?= Date: Sat, 11 May 2024 10:35:16 +0800 Subject: [PATCH] deploy --- .woodpecker/.build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index 5b83649..60e954a 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -15,3 +15,24 @@ steps: tags: - latest - ${CI_PREV_PIPELINE_CREATED} + + - name: deploy + image: appleboy/drone-ssh + settings: + host: + - blog.lll.net + username: root + password: + from_secret: ssh_password + port: 2022 + command_timeout: 2m + script: + - cd /root/learn/ + - docker pull docker.lianglianglee.com/lianglianglee/md-view-go:latest + - docker compose down && docker compose up -d + when: + - environment: production + - event: deployment + depends_on: + - build + - docker \ No newline at end of file