automated_api/.drone.yml
lixin 0d7ba812f5
Some checks failed
continuous-integration/drone/push Build is failing
ci(.drone.yml): 更新 Docker 运行命令和重启策略
- 将 Docker 重启策略从 automated 改为 unless-stopped
- 使用 latest 标签替代 tag
- 优化 Docker 命令格式
2025-01-10 16:07:42 +08:00

29 lines
538 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
- name: docker-run-step
image: plugins/docker
commands:
- docker run -d -p 8001:8001 --name automated-api --restart unless-stopped automated-api:latest
trigger:
branch:
- main
- master
volumes:
- name: docker
host:
path: /var/run/docker.sock