代码拉取完成,页面将自动刷新
---
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。