From 37090ccdc6dfbda484d5501b271202dd907fc2fb Mon Sep 17 00:00:00 2001 From: Eg <1711788888@qq.com> Date: Wed, 15 Jun 2022 10:57:59 +0800 Subject: [PATCH] :zap: commit ci file --- .drone.yml | 37 ++++--------------------------------- 1 file changed, 4 insertions(+), 33 deletions(-) diff --git a/.drone.yml b/.drone.yml index dc6a919..80ad877 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,46 +10,17 @@ steps: - name: BuildToRegistry image: plugins/docker settings: - registry: registry.cn-hangzhou.aliyuncs.com - repo: registry.cn-hangzhou.aliyuncs.com/hyxc_dev/scale_manager + registry: registry.cn-shanghai.aliyuncs.com + repo: registry.cn-shanghai.aliyuncs.com/docker-echo username: - from_secret: registry_username + from_secret: xs765911 password: - from_secret: registry_password + from_secret: loser7659 use_cache: true # event为push且分支为master的时候,自动打latest,为tag则会根据tag自动生成 tag: - latest - sha_${DRONE_COMMIT_SHA} - when: - status: - - "success" - - - ---- -kind: pipeline -type: docker -name: BuildProd - -trigger: - event: [tag] - -steps: - - name: BuildToRegistry - image: plugins/docker - # depends_on: - # - CheckCode - settings: - registry: registry.cn-hangzhou.aliyuncs.com - repo: registry.cn-hangzhou.aliyuncs.com/hyxc/scale_manager - 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