
Some checks failed
continuous-integration/drone/push Build is failing
- 移除了多余的空行 - 在 docker run 命令中添加了 --network 参数,指定使用 tycm-server_test-network 网络 - 删除了不必要的 plugins/docker 镜像引用
27 lines
523 B
YAML
27 lines
523 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: plugins/docker
|
|
settings:
|
|
dockerfile: Dockerfile
|
|
dry_run: true
|
|
repo: automated-api
|
|
tags:
|
|
- latest
|
|
mirror: https://docker.1panelproxy.com
|
|
commands:
|
|
- docker run -d -p 8001:8001 --network tycm-server_test-network --name automated-api --restart unless-stopped automated-api:latest
|
|
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
- master
|
|
|
|
volumes:
|
|
- name: docker
|
|
host:
|
|
path: /var/run/docker.sock |