ci(drone): Remove Aliyun registry and Docker mirror configuration
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
- Removed hardcoded Aliyun registry settings - Deleted Docker registry mirror configuration - Simplified Docker deployment step - Removed unnecessary Docker daemon configuration
This commit is contained in:
parent
506f322154
commit
8c5676871d
16
.drone.yml
16
.drone.yml
@ -15,15 +15,9 @@ steps:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
repo: your-registry/nodejs-app
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
registry: registry.cn-hangzhou.aliyuncs.com # 替换为您的镜像仓库地址
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
volumes:
|
||||
- name: node_modules
|
||||
path: /drone/src/node_modules
|
||||
@ -33,16 +27,6 @@ steps:
|
||||
- name: deploy
|
||||
image: docker:dind
|
||||
commands:
|
||||
- mkdir -p /etc/docker
|
||||
- |
|
||||
echo '{
|
||||
"registry-mirrors": [
|
||||
"https://docker.1panel.live",
|
||||
"https://ustc-edu-cn.mirror.aliyuncs.com",
|
||||
"https://ccr.ccs.tencentyun.com",
|
||||
"https://docker.m.daocloud.io"
|
||||
]
|
||||
}' > /etc/docker/daemon.json
|
||||
- docker stop nodejs-app || true
|
||||
- docker rm nodejs-app || true
|
||||
- >
|
||||
|
Loading…
Reference in New Issue
Block a user