release
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing

This commit is contained in:
liupeng 2024-02-28 16:42:46 +08:00
parent fde11d3ff9
commit 1348dad664

View File

@ -74,24 +74,26 @@ steps:
- push
# - name: deploy-release
# image: appleboy/drone-ssh
# settings:
# host:
# - dev.daymele.com
# username: liuo
# password:
# from_secret: HOST_PASSWORD
# port: 22
# command_timeout: 2m
# script:
# - echo "deploy ssh!"
# - name=demo-test
# - image=git.daymele.com/liupeng/drone::latest
# - docker pull $image
# - docker rm -f test-demo || true
# - docker image prune -f
# - docker run --name=$name -d -p 8001:9000 $image
# when:
# event:
# - tag
- name: deploy-release
image: appleboy/drone-ssh
settings:
host:
- pub.daymele.com
username: liup
# password:
# from_secret: HOST_PASSWORD
key:
from_secret: HOST_KEY
port: 22
command_timeout: 2m
script:
- echo "deploy ssh!"
- name=drone-release
- image=git.daymele.com/liupeng/drone::latest
- docker pull $image
- docker rm -f drone-release || true
- docker image prune -f
- docker run --name=$name -d -p 8002:9000 -v /etc/conf:/conf $image
when:
event:
- tag