deploy
ci/woodpecker/push/build Pipeline was successful Details

This commit is contained in:
李亮亮 2024-05-11 10:35:16 +08:00
parent 2a00f35208
commit 38ef55595e
1 changed files with 21 additions and 0 deletions

View File

@ -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