加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.drone.yml 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
tato 提交于 2022-04-05 13:44 . ci: init
---
kind: pipeline
type: kubernetes
name: default
platform:
os: linux
arch: arm64
volumes:
- name: drone-cache-volume
host:
path: /var/lib/cache
steps:
- name: restore-cache
image: docker.mirrors.ustc.edu.cn/meltwater/drone-cache:dev
settings:
backend: 'filesystem'
restore: true
cache_key: '{{ .Repo.Name }}_{{ checksum "yarn.lock" }}'
mount:
- node_modules
volumes:
- name: drone-cache-volume
path: /tmp/cache
- name: install-pkgs
image: docker.mirrors.ustc.edu.cn/library/node:16.13-alpine
commands:
- yarn install --prod false --pure-lockfile --cache-folder /tmp/cache/yarn-cache
- name: lint
image: docker.mirrors.ustc.edu.cn/library/node:16.13-alpine
commands:
- yarn lint
depends_on:
- install-pkgs
- name: tsc
image: docker.mirrors.ustc.edu.cn/library/node:16.13-alpine
commands:
- yarn tsc
depends_on:
- install-pkgs
- name: test
image: docker.mirrors.ustc.edu.cn/library/node:16.13-alpine
commands:
- yarn test
depends_on:
- install-pkgs
- name: rebuild-cache
image: docker.mirrors.ustc.edu.cn/meltwater/drone-cache:dev
pull: never
settings:
backend: 'filesystem'
rebuild: true
cache_key: '{{ .Repo.Name }}_{{ checksum "yarn.lock" }}'
mount:
- node_modules
volumes:
- name: drone-cache-volume
path: /tmp/cache
depends_on:
- install-pkgs
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化