- 在 .drone.yml 文件中添加了 docker-run-step 步骤 - 使用 plugins/docker 插件运行 Docker 容器 - 启动一个名为 automated-api 的容器,映射端口 8001,并设置重启策略
This commit is contained in:
parent
a469e0f595
commit
871e0b2a2e
@ -13,6 +13,10 @@ steps:
|
||||
- latest
|
||||
mirror: https://docker.1panelproxy.com
|
||||
|
||||
- name: docker-run-step
|
||||
image: plugins/docker
|
||||
commands:
|
||||
- docker run -d -p 8001:8001 --name automated-api --restart automated-api:tag
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
|
Loading…
Reference in New Issue
Block a user