Files
011-ai-interview/.drone.yml
111 a09d6ae970
Some checks failed
continuous-integration/drone/push Build is failing
refactor: 改造 CI/CD 使用阿里云 ACR 镜像仓库
- 使用 plugins/docker 替代 docker:dind 构建镜像
- 镜像推送到阿里云 ACR 私有仓库
- 移除本地部署步骤(由 Watchtower 自动更新)
- 镜像标签: latest, 分支名, commit SHA

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-03 16:59:11 +08:00

46 lines
1.1 KiB
YAML

kind: pipeline
type: docker
name: build-and-push
trigger:
branch:
- main
- develop
event:
- push
steps:
# 构建并推送后端镜像
- name: build-push-backend
image: plugins/docker
settings:
registry:
from_secret: docker_registry
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: crpi-na6dit5kd0bonqed.cn-guangzhou.personal.cr.aliyuncs.com/ireborn/ai-interview-backend
dockerfile: deploy/Dockerfile.backend
tags:
- latest
- ${DRONE_BRANCH}
- ${DRONE_COMMIT_SHA:0:8}
# 构建并推送前端镜像
- name: build-push-frontend
image: plugins/docker
settings:
registry:
from_secret: docker_registry
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: crpi-na6dit5kd0bonqed.cn-guangzhou.personal.cr.aliyuncs.com/ireborn/ai-interview-frontend
dockerfile: deploy/Dockerfile.frontend
tags:
- latest
- ${DRONE_BRANCH}
- ${DRONE_COMMIT_SHA:0:8}