From c4af42956be8227ea3563ba2ea40626a6658f06c Mon Sep 17 00:00:00 2001 From: seahi Date: Fri, 18 Apr 2025 12:25:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Docker=20Hub=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4ce2994..028240d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,9 +20,16 @@ steps: login: true dockerfile: Dockerfile auto-tag: true - registry: harbor.seahi.me - repo: harbor.seahi.me/stu/task-supervisor + registry: docker.io username: - from_secret: harbor_username + from_secret: dockerhub_username password: - from_secret: harbor_password + from_secret: dockerhub_password + # 配置 Harbor 作为推送目标(通过额外的参数) + repo: harbor.seahi.me/stu/task-supervisor + custom_registries: + - registry: harbor.seahi.me + username: + from_secret: harbor_username + password: + from_secret: harbor_password