automated_api/.drone.yml
lixin 201be6eb1e
Some checks failed
continuous-integration/drone/push Build is failing
ci: 更新 .drone.yml 文件
- 在 .drone.yml 文件中添加中文注释 "#测试"
- 此修改用于测试目的,不影响功能
2025-01-10 12:32:08 +08:00

35 lines
711 B
YAML

kind: pipeline
type: docker
name: nodejs-22-docker-ci
#测试
steps:
- name: git-clone
image: alpine/git
commands:
- git clone http://120.48.5.80:3000/lixin/automated_api.git
- cd automated_api
- name: build-docker-image
image: docker:latest
volumes:
- name: docker-socket
path: /var/run/docker.sock
working_directory: automated_api
commands:
- docker build -t rz/automated_api:latest -f Dockerfile.
- name: run-container
image: docker:latest
commands:
- docker run -d -p 8001:8001 rz/automated_api:latest
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock
trigger:
branch:
- main
event:
- push