17 lines
230 B
YAML
17 lines
230 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: run-scheduled-task
|
|
image: python:3.10
|
|
commands:
|
|
- pip install -r requirements.txt # 如果有依赖
|
|
- python task.py
|
|
|
|
trigger:
|
|
event:
|
|
- cron
|
|
|
|
|