使用加速镜像
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
seahi 2025-04-18 12:55:11 +08:00
parent bdc3bb03c1
commit d39a046ea6

View File

@ -6,30 +6,20 @@ node:
name: pve
steps:
- name: Pre-login to Docker Hub
image: docker:cli
# 使用 plugins/docker 的内置功能
- name: Build and Push
image: plugins/docker
pull: if-not-exists
volumes:
- name: docker-config
path: /root/.docker
privileged: false
environment:
# Docker Hub 凭据用于拉取基础镜像
DOCKER_USERNAME:
from_secret: dockerhub_username
DOCKER_PASSWORD:
from_secret: dockerhub_password
commands:
- echo "Logging into Docker Hub..."
- docker login docker.io -u "$${DOCKER_USERNAME}" -p "$${DOCKER_PASSWORD}"
- cat /root/.docker/config.json # 显示配置文件内容(可选,用于调试)
- name: Build and Push
image: plugins/docker:20.10
pull: if-not-exists
volumes:
- name: docker-config
path: /root/.docker
settings:
debug: true
mirror: hub.seahi.me
debug: true # 启用调试日志
dockerfile: Dockerfile
auto_tag: true
registry: harbor.seahi.me
@ -38,7 +28,3 @@ steps:
from_secret: harbor_username
password:
from_secret: harbor_password
volumes:
- name: docker-config
temp: {}