ci(.drone.yml): 更新 Docker 运行命令和重启策略
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
- 将 Docker 重启策略从 automated 改为 unless-stopped - 使用 latest 标签替代 tag - 优化 Docker 命令格式
This commit is contained in:
parent
871e0b2a2e
commit
0d7ba812f5
@ -16,7 +16,8 @@ steps:
|
|||||||
- name: docker-run-step
|
- name: docker-run-step
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
commands:
|
commands:
|
||||||
- docker run -d -p 8001:8001 --name automated-api --restart automated-api:tag
|
- docker run -d -p 8001:8001 --name automated-api --restart unless-stopped automated-api:latest
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
@ -25,4 +26,4 @@ trigger:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: docker
|
- name: docker
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
Loading…
Reference in New Issue
Block a user