From cacd247fb46ce1d90b20b606e11d5d577b72c685 Mon Sep 17 00:00:00 2001 From: seahi Date: Tue, 15 Apr 2025 15:59:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0debug=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.drone.yml b/.drone.yml index cda6d93..45c13f3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,6 +6,22 @@ node: name: pve steps: + - name: Debug Harbor Login + image: alpine + commands: + - apk add --no-cache docker-cli # 安装 Docker CLI + - echo "Testing login" + - docker login harbor.seahi.me -u $$HARBOR_USERNAME -p $$HARBOR_PASSWORD + - echo "Testing push" + - docker build -f Dockerfile.normal -t harbor.seahi.me/stu/normal-exit:latest . + - docker push harbor.seahi.me/stu/normal-exit:latest + environment: + HARBOR_USERNAME: + from_secret: harbor_username + HARBOR_PASSWORD: + from_secret: harbor_password + failure: ignore # 继续执行,即使失败 + - name: Build normal exit image pull: always image: plugins/docker