This commit is contained in:
parent
35df05b963
commit
cacd247fb4
16
.drone.yml
16
.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
|
||||
|
Loading…
x
Reference in New Issue
Block a user