|
|
@ -31,13 +31,20 @@ steps: |
|
|
|
tags: ${DRONE_BUILD_NUMBER} |
|
|
|
|
|
|
|
|
|
|
|
- name: rancher-push |
|
|
|
privileged: true |
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:34 # 直接用busybox |
|
|
|
# - name: rancher-push |
|
|
|
# privileged: true |
|
|
|
# image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:34 # 直接用busybox |
|
|
|
# settings: |
|
|
|
# docker_img : registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} |
|
|
|
# commands: |
|
|
|
# - podman ps |
|
|
|
# - docker login --username=tjqmhu -p "tjqm4912" registry.cn-hangzhou.aliyuncs.com |
|
|
|
# - docker pull registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} |
|
|
|
# - docker save registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} >test-drone-${DRONE_BUILD_NUMBER}.tar |
|
|
|
# |
|
|
|
|
|
|
|
- name: rancher-deploy |
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:42 # 直接用busybox |
|
|
|
settings: |
|
|
|
docker_img : registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} |
|
|
|
commands: |
|
|
|
- podman ps |
|
|
|
- docker login --username=tjqmhu -p "tjqm4912" registry.cn-hangzhou.aliyuncs.com |
|
|
|
- docker pull registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} |
|
|
|
- docker save registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} >test-drone-${DRONE_BUILD_NUMBER}.tar |
|
|
|
# tar: test-drone-${DRONE_BUILD_NUMBER}.tar |
|
|
|
docker_img: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} |