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