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" ]