ci: 更新 .drone.yml 文件
Some checks failed
continuous-integration/drone/push Build is failing

- 移除了文件开头的中文注释
- 调整了步骤缩进,使其更加规范
- 删除了多余的空行,优化了文件结构
This commit is contained in:
lixin 2025-01-10 13:22:43 +08:00
parent 3f199f4b1f
commit d9d0ec4b2a

View File

@ -1,7 +1,7 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: nodejs-22-docker-ci name: nodejs-22-docker-ci
#测试
steps: steps:
- name: git-clone - name: git-clone
image: alpine/git image: alpine/git
@ -18,16 +18,16 @@ steps:
commands: commands:
- docker build -t rz/automated_api:latest -f Dockerfile . - docker build -t rz/automated_api:latest -f Dockerfile .
- name: run-container - name: run-container
image: docker:latest image: docker:latest
volumes: volumes:
- name: docker-socket - name: docker-socket
path: /var/run/docker.sock path: /var/run/docker.sock
commands: commands:
- echo "Checking Docker version" - echo "Checking Docker version"
- docker version - docker version
- echo "Running container" - echo "Running container"
- docker run -d -p 8001:8001 rz/automated_api:latest - docker run -d -p 8001:8001 rz/automated_api:latest
trigger: trigger:
branch: branch: