From 236b54525d150076fa5718d7fe993bdd365952c8 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 22 Jun 2021 01:08:42 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3d06487..0a61db0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,11 +15,15 @@ steps: - go build -ldflags "-X main.version=${DRONE_COMMIT_SHA:0:8}" - name: publish image: plugins/docker:19.03.8 - environment: - PLUGIN_REGISTRY: 10.10.14.176:5000 - PLUGIN_REPO: 10.10.14.176:5000/go/example + when: + branch: + - master settings: insecure: true + registry: 49.4.92.112 + repo: 49.4.92.112:9500/go/example + username: admin + password: aA123456! tags: - latest - ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} \ No newline at end of file