From a457139bae500a2d062d25e2f657c13ae72706e7 Mon Sep 17 00:00:00 2001 From: "zhipeng.hu" Date: Fri, 4 Aug 2023 11:16:41 +0800 Subject: [PATCH] save --- .drone.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index 71f22b7..566cc89 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,18 +22,27 @@ steps: when: target: [ "test","pre" ] -# - name: docker-push -# image: plugins/docker -# settings: -# username: tjqmhu -# password: tjqm4912 -# repo: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone -# dockerfile: Dockerfile -# registry: https://registry.cn-hangzhou.aliyuncs.com -# tags: ${DRONE_BUILD_NUMBER} + - name: docker-push + image: plugins/docker + settings: + username: tjqmhu + password: tjqm4912 + repo: registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone + dockerfile: Dockerfile + registry: https://registry.cn-hangzhou.aliyuncs.com + tags: ${DRONE_BUILD_NUMBER} # when: # target: [ "test","pre"] + - name: docker-save + image: docker + commands: + - docker save -o ${DRONE_BUILD_NUMBER}.tar . +# - docker push registry.cn-hangzhou.aliyuncs.com/huvipg/test-drone/${DRONE_BUILD_NUMBER} +# when: +# target: ["test", "pre"] + + - name: rancher-deploy image: registry.cn-hangzhou.aliyuncs.com/hvp/dpr:12 # 直接用busybox settings: