deployment
This commit is contained in:
parent
00628f7ff8
commit
30b515cbfe
|
@ -14,5 +14,4 @@ steps:
|
||||||
insecure: true
|
insecure: true
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- master
|
|
||||||
- ${CI_PREV_PIPELINE_CREATED}
|
- ${CI_PREV_PIPELINE_CREATED}
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- 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
|
Loading…
Reference in New Issue