Compare commits

...

2 Commits

Author SHA1 Message Date
071511548b 增加README
All checks were successful
continuous-integration/drone/push Build is passing
2025-04-15 16:16:02 +08:00
a266386661 删除debug信息 2025-04-15 16:15:50 +08:00
2 changed files with 11 additions and 19 deletions

View File

@ -1,29 +1,11 @@
kind: pipeline
type: docker
name: build
name: Build docker iamges
node:
name: pve
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
pull: if-not-exists
image: plugins/docker:20.10

10
README.md Normal file
View File

@ -0,0 +1,10 @@
# 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 不同重启策略