dev #3
14
.drone.yml
14
.drone.yml
@ -58,7 +58,7 @@ steps:
|
|||||||
port: 22
|
port: 22
|
||||||
command_timeout: 2m
|
command_timeout: 2m
|
||||||
script:
|
script:
|
||||||
- echo "deploy ssh!"
|
- echo "deploy docker ssh!"
|
||||||
- name=drone-test
|
- name=drone-test
|
||||||
- image=git.daymele.com/liupeng/drone:canary
|
- image=git.daymele.com/liupeng/drone:canary
|
||||||
- echo ${DRONE_BRANCH}
|
- echo ${DRONE_BRANCH}
|
||||||
@ -87,13 +87,13 @@ steps:
|
|||||||
port: 22
|
port: 22
|
||||||
command_timeout: 2m
|
command_timeout: 2m
|
||||||
script:
|
script:
|
||||||
- echo "deploy ssh!"
|
- echo "deploy podman ssh!"
|
||||||
- name=drone-release
|
- name=drone-release
|
||||||
- image=git.daymele.com/liupeng/drone::latest
|
- image=git.daymele.com/liupeng/drone:latest
|
||||||
- docker pull $image
|
- podman pull $image
|
||||||
- docker rm -f drone-release || true
|
- podman rm -f drone-release || true
|
||||||
- docker image prune -f
|
- podman image prune -f
|
||||||
- docker run --name=$name -d -p 8002:9000 -v /etc/conf:/conf $image
|
- podman run --name=$name -d -p 8002:9000 -v /etc/conf:/conf $image
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
Loading…
Reference in New Issue
Block a user