kind: pipeline type: docker name: default # 关键:替换默认 clone 镜像 clone: image: registry.cn-hangzhou.aliyuncs.com/zhongpengqun/wanderer:linux-amd64-git-v2.52.0 # 触发条件 trigger: branch: - master # 只在 main 分支触发 event: - push # 只在 push 时触发 steps: - name: hello image: alpine commands: - echo "hello world" - echo "当前分支:$DRONE_BRANCH" - echo "提交信息:$DRONE_COMMIT_MESSAGE" - name: pylint image: python:3.9 commands: - pip install pylint - pylint your_project_name