Files
airport-chengdu-web/.drone.yml
T
2022-09-26 15:13:10 +08:00

56 lines
915 B
YAML

---
kind: pipeline
name: default
type: docker
platform:
os: linux
arch: amd64
clone:
image: reg.int.it2000.com.cn/devops/git
tags: true
skip_verify: true
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ./node_modules
- name: build
image: reg.int.it2000.com.cn/library/node:14.20-bullseye
commands:
- node -v
- npm -v
- yarn --version
- yarn install
volumes:
- name: cache
host:
path: /opt/node/cache
- name: certs
host:
path: /etc/ssl/certs
- name: docker
host:
path: /var/run/docker.sock
volumes: