From b74f3e43deec12e3746ffb048d8777bffcf59f96 Mon Sep 17 00:00:00 2001 From: "zhipeng.hu" Date: Fri, 4 Aug 2023 11:17:29 +0800 Subject: [PATCH] save --- .drone.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 566cc89..f6ab2c1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,8 +19,8 @@ steps: - go mod init test-drone - go mod tidy - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o test-drone - when: - target: [ "test","pre" ] + #when: + #target: [ "test","pre" ] - name: docker-push image: plugins/docker @@ -31,17 +31,11 @@ steps: 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