From bf48632b1cd2f6a6e5ea7c8c84d4cdf6c58aba55 Mon Sep 17 00:00:00 2001 From: "zhipeng.hu" Date: Thu, 10 Aug 2023 13:21:34 +0800 Subject: [PATCH] docker --- .drone.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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" ] +