From dd1f0e30a43813c4f51ce89efc96f86aec4b762f Mon Sep 17 00:00:00 2001 From: "zhipeng.hu" Date: Thu, 10 Aug 2023 14:01:50 +0800 Subject: [PATCH] docker --- .drone.yml | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3ee00fe..c737159 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,30 +36,30 @@ steps: target: [ "test","pre" ] - - name: rancher-push - privileged: true - image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:55 # 直接用busybox - settings: -# docker_img : registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} - tar : test-drone-${DRONE_BUILD_NUMBER}.tar - 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 - when: - target: [ "test","pre" ] -# - name: rancher-deploy +# - name: rancher-push # privileged: true -# image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:53 # 直接用busybox +# image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:55 # 直接用busybox # settings: -# docker_img: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} -## username: docker-push -## password: WeWlh6hGYCtxO4r -## registry: https://repository.241210.com -# username: tjqmhu -# password: tjqm4912 -# registry: https://registry.cn-hangzhou.aliyuncs.com +## docker_img : registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} +# tar : test-drone-${DRONE_BUILD_NUMBER}.tar +# 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 # when: # target: [ "test","pre" ] + - name: rancher-deploy + privileged: true + image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:56 # 直接用busybox + settings: + docker_img: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone:${DRONE_BUILD_NUMBER} +# username: docker-push +# password: WeWlh6hGYCtxO4r +# registry: https://repository.241210.com + username: tjqmhu + password: tjqm4912 + registry: https://registry.cn-hangzhou.aliyuncs.com + when: + target: [ "test","pre" ]