Compare commits

..

No commits in common. "071511548bd2c47a724fd5739f455abfa851910d" and "e98ea9b11c7544641dd27abed76a7fe7df31fa70" have entirely different histories.

2 changed files with 19 additions and 11 deletions

View File

@ -1,11 +1,29 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: Build docker iamges name: build
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

View File

@ -1,10 +0,0 @@
# countdown
[![Build Status](https://drone.seahi.me/api/badges/seahi/countdown/status.svg)](https://drone.seahi.me/seahi/countdown)
依赖 Gitea + Drone 自动构建两个 Docker 课程使用的镜像:
1. 运行15秒后自动退出的镜像
2. 运行15秒后异常退出的镜像
这两个镜像的作用是演示 Docker 不同重启策略