release
This commit is contained in:
parent
fde11d3ff9
commit
1348dad664
44
.drone.yml
44
.drone.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user