Files
airport-chengdu-web/.drone.yml
T
2022-09-26 16:04:50 +08:00

72 lines
1.3 KiB
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
settings:
restore: true
mount:
- ./node_modules
volumes:
- name: cache
path: /cache
- name: build
image: reg.int.it2000.com.cn/library/node:14.20-bullseye
commands:
# - node -v
# - npm -v
# - yarn --version
- yarn
- yarn build
- name: publish
image: plugins/docker
volumes:
- name: certs
path: /etc/ssl/certs
- name: docker
path: /var/run/docker.sock
settings:
repo: reg.int.it2000.com.cn/cdia/admin-web
registry: reg.int.it2000.com.cn
insecure: true
tags: [ "1.2.2" ]
username:
from_secret: registry_user
password:
from_secret: registry_pass
- name: rebuild-cache
image: drillster/drone-volume-cache
settings:
rebuild: true
mount:
- ./node_modules
volumes:
- name: cache
path: /cache
volumes:
- name: cache
host:
path: /opt/node/cache/node_modules
- name: certs
host:
path: /etc/ssl/certs
- name: docker
host:
path: /var/run/docker.sock