ci(drone): Add Docker registry mirrors for improved image pulling
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- Added multiple Docker registry mirrors to improve image download performance - Configured Docker daemon with registry mirror configuration - Updated container name from 'nodejs-app' to 'automated-api' - Maintained existing volume and environment configurations
This commit is contained in:
parent
69c7db4b5e
commit
d4265b2855
19
.drone.yml
19
.drone.yml
@ -41,18 +41,29 @@ steps:
|
|||||||
- name: deploy
|
- name: deploy
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
commands:
|
commands:
|
||||||
- docker stop nodejs-app || true
|
- mkdir -p /etc/docker
|
||||||
- docker rm nodejs-app || true
|
- |
|
||||||
|
echo '{
|
||||||
|
"registry-mirrors": [
|
||||||
|
"https://docker.1panelproxy.com",
|
||||||
|
"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 automated-api || true
|
||||||
|
- docker rm automated-api || true
|
||||||
- >
|
- >
|
||||||
docker run -d
|
docker run -d
|
||||||
--name nodejs-app
|
--name automated-api
|
||||||
--restart always
|
--restart always
|
||||||
-p 8001:8001
|
-p 8001:8001
|
||||||
-v /usr/local/blackend/node_modules:/app/node_modules
|
-v /usr/local/blackend/node_modules:/app/node_modules
|
||||||
-v /usr/local/blackend/pnpm_cache:/root/.local/share/pnpm/store
|
-v /usr/local/blackend/pnpm_cache:/root/.local/share/pnpm/store
|
||||||
-e NODE_ENV=production
|
-e NODE_ENV=production
|
||||||
-e PORT=8001
|
-e PORT=8001
|
||||||
your-registry/nodejs-app:latest
|
automated-api:latest
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_sock
|
- name: docker_sock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
Loading…
Reference in New Issue
Block a user