Files
kami_backend/.drone.yml
danial 0af20ab14e
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
chore(ci): 更新CI配置中的镜像仓库地址和登录信息
- 将.drone.yml中docker登录地址由git.oceanpay.cc替换为git.domainpay.top
- 修改相关docker构建、标记及推送的镜像路径为git.domainpay.top
- 更新docker-compose.yml中所有服务的镜像地址至git.domainpay.top
- 内部日志处理中添加错误日志打印,增强错误排查能力
2025-12-17 15:54:26 +08:00

36 lines
1016 B
Go

---
kind: pipeline
type: ssh
name: master-machine
server:
host: 38.55.194.49:3422
user: root
password:
from_secret: www_password
clone:
depth: 1
steps:
- name: build new image
environment:
DOCKER_LOGIN:
from_secret: docker_login
DOCKER_TOKEN:
from_secret: docker_token
commands:
- docker login git.domainpay.top -u $DOCKER_LOGIN -p $DOCKER_TOKEN
- docker build -t git.domainpay.top/danial/kami_backend_${DRONE_BRANCH}:${DRONE_BUILD_NUMBER} -f manifest/docker/Dockerfile . --build-arg USE_PROXY=0
- docker tag git.domainpay.top/danial/kami_backend_${DRONE_BRANCH}:${DRONE_BUILD_NUMBER} git.domainpay.top/danial/kami_backend_${DRONE_BRANCH}:latest
- docker push git.domainpay.top/danial/kami_backend_${DRONE_BRANCH}:${DRONE_BUILD_NUMBER}
- docker push git.domainpay.top/danial/kami_backend_${DRONE_BRANCH}:latest
- docker logout git.domainpay.top
trigger:
branch:
- develop
- production
when:
event:
- push