Files
airport-chengdu-web/.drone.yml
T

56 lines
915 B
YAML
Raw Normal View History

2022-09-26 11:23:19 +08:00
---
kind: pipeline
name: default
type: docker
platform:
os: linux
arch: amd64
2022-09-26 15:10:09 +08:00
clone:
image: reg.int.it2000.com.cn/devops/git
tags: true
skip_verify: true
steps:
2022-09-26 15:12:11 +08:00
- 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
2022-09-26 15:08:42 +08:00
2022-09-26 11:23:19 +08:00
- name: build
2022-09-26 14:38:36 +08:00
image: reg.int.it2000.com.cn/library/node:14.20-bullseye
2022-09-26 11:23:19 +08:00
commands:
2022-09-26 15:02:38 +08:00
- node -v
- npm -v
- yarn --version
2022-09-26 15:08:42 +08:00
- yarn install
2022-09-26 11:23:19 +08:00
volumes:
2022-09-26 15:08:42 +08:00
- name: cache
2022-09-26 11:23:19 +08:00
host:
2022-09-26 15:08:42 +08:00
path: /opt/node/cache
2022-09-26 11:23:19 +08:00
- name: certs
host:
path: /etc/ssl/certs
- name: docker
host:
path: /var/run/docker.sock
2022-09-26 15:08:42 +08:00
volumes: