diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index 19de28d..5b83649 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -14,5 +14,4 @@ steps: insecure: true tags: - latest - - master - ${CI_PREV_PIPELINE_CREATED} diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml new file mode 100644 index 0000000..985504c --- /dev/null +++ b/.woodpecker/.deploy.yml @@ -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