删除debug信息
This commit is contained in:
parent
e98ea9b11c
commit
a266386661
20
.drone.yml
20
.drone.yml
@ -1,29 +1,11 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build
|
name: Build docker iamges
|
||||||
|
|
||||||
node:
|
node:
|
||||||
name: pve
|
name: pve
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Debug Harbor Login and Push
|
|
||||||
image: plugins/docker:20.10 # 使用与主步骤相同的镜像
|
|
||||||
pull: if-not-exists
|
|
||||||
privileged: false # 如果需要,保持与主步骤一致
|
|
||||||
commands:
|
|
||||||
- apk add --no-cache docker-cli # 如果需要安装额外的工具,但可能不需要
|
|
||||||
- echo "Testing login"
|
|
||||||
- docker login harbor.seahi.me -u $$HARBOR_USERNAME -p $$HARBOR_PASSWORD
|
|
||||||
- echo "Testing build and 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
|
- name: Build normal exit image
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: plugins/docker:20.10
|
image: plugins/docker:20.10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user