From 999fea0454687d8a47290bb16eb1dfc4aa4c2dc3 Mon Sep 17 00:00:00 2001 From: loser <1711788888@qq.com> Date: Thu, 16 Jun 2022 22:28:54 +0800 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 | 35 ++++------------------------------- 1 file changed, 4 insertions(+), 31 deletions(-) diff --git a/.drone.yml b/.drone.yml index f0a1d65..b1cac24 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,12 +10,12 @@ steps: - name: BuildToRegistry image: plugins/docker settings: - registry: registry.cn-shanghai.aliyuncs.com - repo: registry.cn-shanghai.aliyuncs.com/docker-echo/drone-test + registry: docker.echol.cn + repo: docker.echol.cn/drone_docker/drone-test username: - from_secret: registry_username + from_secret: harbor_user password: - from_secret: registry_password + from_secret: harbor_pwd use_cache: true # event为push且分支为master的时候,自动打latest,为tag则会根据tag自动生成 tag: @@ -26,30 +26,3 @@ steps: - "success" - echo hello - echo world - ---- -kind: pipeline -type: docker -name: BuildProd - -trigger: - event: [tag] - -steps: - - name: BuildToRegistry - image: plugins/docker - # depends_on: - # - CheckCode - settings: - registry: registry.cn-shanghai.aliyuncs.com - repo: registry.cn-shanghai.aliyuncs.com/docker-echo/drone-test - username: - from_secret: registry_username - password: - from_secret: registry_password - use_cache: true - # event为push且分支为master的时候,自动打latest,为tag则会根据tag自动生成 - auto_tag: true - when: - status: - - "success" \ No newline at end of file