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