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
|
||||
image: plugins/docker
|
||||
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:
|
||||
branch:
|
||||
- main
|
||||
|
Loading…
Reference in New Issue
Block a user