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

This commit is contained in:
liupeng 2024-02-28 13:53:06 +08:00
parent fd54af2903
commit defcf02fb6

View File

@ -2,12 +2,12 @@ kind: pipeline
name: default
clone:
depth: 10
disable: true # 禁用代码拉取
steps:
# 开发版
- name: docker-${DRONE_BRANCH}
image: golang
image: plugins/docker
settings:
username: liupeng
password:
@ -45,51 +45,51 @@ 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=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-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:
# - 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