diff --git a/.drone.yml b/.drone.yml index 322a26f..f6cacae 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,6 +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" ] - name: docker-build image: plugins/docker @@ -29,6 +31,8 @@ steps: dockerfile: Dockerfile registry: https://registry.cn-hangzhou.aliyuncs.com tags: ${DRONE_BUILD_NUMBER} + when: + target: [ "test","pre" ] # - name: rancher-push @@ -52,3 +56,6 @@ steps: username: tjqmhu password: tjqm4912 registry: https://registry.cn-hangzhou.aliyuncs.com + when: + target: [ "test","pre" ] +