deploy
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
liupeng 2024-02-28 14:47:45 +08:00
parent 3ea164df2d
commit 3c93d6b83b

View File

@ -2,7 +2,7 @@ kind: pipeline
name: default
clone:
disable: false # 用代码拉取
disable: false # 用代码拉取
steps:
# 开发版
@ -45,31 +45,31 @@ steps:
- tag
# - name: deploy-${DRONE_BRANCH}
# image: appleboy/drone-ssh
# settings:
# host:
# - dev.daymele.com
# username: liup
# password:
# from_secret: HOST_PASSWORD
# port: 22
# command_timeout: 2m
# script:
# - echo "deploy ssh!"
# - name=test-demo
# - image=git.daymele.com/liupeng/drone:canary
# - echo ${DRONE_BRANCH}
# - docker pull $image
# - docker rm -f test-demo || true
# - docker image prune -f
# - docker run --name=$name -d -p 8001:9000 $image
# when:
# branch:
# - master
# - dev
# event:
# - push
- name: deploy-${DRONE_BRANCH}
image: appleboy/drone-ssh
settings:
host:
- dev.daymele.com
username: liup
password:
from_secret: HOST_PASSWORD
port: 22
command_timeout: 2m
script:
- echo "deploy ssh!"
- name=drone-test
- image=git.daymele.com/liupeng/drone:canary
- echo ${DRONE_BRANCH}
- docker pull $image
- docker rm -f drone-test || true
- docker image prune -f
- docker run --name=$name -d -p 8001:9000 $image
when:
branch:
- master
- dev
event:
- push
# - name: deploy-release