task-supervisor/.drone.yml
seahi 6c64d04822
Some checks failed
continuous-integration/drone/push Build is failing
增加Docker Hub认证信息
2025-04-18 12:20:53 +08:00

29 lines
739 B
YAML

kind: pipeline
type: docker
name: Build docker iamge
node:
name: pve
steps:
- name: Build supervisor image
pull: if-not-exists
image: plugins/docker:20.10
privileged: false
# 将 Docker Hub 凭据作为环境变量传递给插件容器
environment:
DOCKER_USERNAME:
from_secret: dockerhub_username # 引用你创建的 Secret 名称
DOCKER_PASSWORD:
from_secret: dockerhub_password # 引用你创建的 Secret 名称
settings:
login: true
dockerfile: Dockerfile
auto-tag: true
registry: harbor.seahi.me
repo: harbor.seahi.me/stu/task-supervisor
username:
from_secret: harbor_username
password:
from_secret: harbor_password