21 lines
572 B
YAML
21 lines
572 B
YAML
.crontab-job: &crontab-job
|
|
- docker:
|
|
image: docker.cnb.cool/kevisual/dev-env/ubuntu-bun:latest
|
|
runner:
|
|
cpus: 2
|
|
imports:
|
|
- https://cnb.cool/kevisual/env/-/blob/main/.env.development
|
|
- https://cnb.cool/kevisual/env/-/blob/main/ssh.yml
|
|
- https://cnb.cool/kevisual/env/-/blob/main/ssh-config.yml
|
|
stages:
|
|
- name: 检测版本更新
|
|
script: |
|
|
bun i
|
|
bun run src/cli.ts repo sync
|
|
timeout: 20s
|
|
|
|
main:
|
|
"crontab: 0 11,23 * * *": !reference [.crontab-job]
|
|
|
|
$:
|
|
push: !reference [.crontab-job] |