kind: pipeline type: docker name: "中文流水线" steps: - name: "中文STEP" image: node:latest pull: if-not-exists commands: - echo "********************" - date - whoami - hostname - echo "********************" - name: "测试Python用例" image: "lzwang/python3.10:tsinghua" pull: if-not-exists commands: - pip install --upgrade pip - pip -V - python -V - pip install -r ./python/requirements.txt - python ./python/hello33.py - name: "CI失败 微信推送" # https://plugins.drone.io/plugins/wechat-2 image: clem109/drone-wechat pull: if-not-exists settings: corpid: from_secret: wechat_corp_id corp_secret: from_secret: wechat_corp_secret agent_id: from_secret: wechat_agent_id title: "${DRONE_REPO_NAME} ⚠️" description: | "Warning: Build number ${DRONE_BUILD_NUMBER} FAILED. ${DRONE_COMMIT_AUTHOR} please fix it, for more detail visit ${DRONE_BUILD_LINK}" msg_url: ${DRONE_BUILD_LINK} btn_txt: btn when: status: - failure - name: "CI通过 微信推送" # https://plugins.drone.io/plugins/wechat-2 image: clem109/drone-wechat pull: if-not-exists settings: corpid: from_secret: wechat_corp_id corp_secret: from_secret: wechat_corp_secret agent_id: from_secret: wechat_agent_id title: "${DRONE_REPO_NAME} ✅" description: "Build Number: ${DRONE_BUILD_NUMBER} success! ${DRONE_COMMIT_AUTHOR} CI pass!" msg_url: ${DRONE_BUILD_LINK} btn_txt: btn when: status: - success