rustdreamer 3 years ago
parent b312dcd929
commit df0f467ea8

@ -1,17 +1,17 @@
--- ---
kind: pipeline kind: pipeline
name: default name: default
volumes: volumes:
- name: dockersock - name: dockersock
host: host:
path: /var/run/docker.sock path: /var/run/docker.sock
- name: cache - name: cache
host: · host: ·
path: /tmp/cache/visitor-new-api path: /tmp/cache/visitor-new-api
steps: steps:
- name: restore-cache - name: restore-cache
pull: if-not-exists pull: if-not-exists
image: drillster/drone-volume-cache image: drillster/drone-volume-cache
settings: settings:
@ -23,7 +23,7 @@
- name: cache - name: cache
path: /cache path: /cache
- name: install - name: install
image: node:14.16.1 image: node:14.16.1
pull: if-not-exists pull: if-not-exists
commands: commands:
@ -34,7 +34,7 @@
event: [push, pull_request] event: [push, pull_request]
branch: [development, test, master, sso] branch: [development, test, master, sso]
- name: rebuild-cache - name: rebuild-cache
pull: if-not-exists pull: if-not-exists
image: drillster/drone-volume-cache image: drillster/drone-volume-cache
settings: settings:
@ -46,8 +46,8 @@
- name: cache - name: cache
path: /cache path: /cache
# build # build
- name: build - name: build
pull: if-not-exists pull: if-not-exists
image: node:14.16.1 image: node:14.16.1
commands: commands:
@ -56,8 +56,8 @@
event: [push, pull_request] event: [push, pull_request]
branch: [development, test, master, sso] branch: [development, test, master, sso]
# docker-build # docker-build
- name: docker-build - name: docker-build
pull: if-not-exists pull: if-not-exists
image: plugins/docker image: plugins/docker
volumes: volumes:
@ -77,8 +77,8 @@
event: [push, pull_request] event: [push, pull_request]
branch: [development, test, master] branch: [development, test, master]
# run # run
- name: dev-run - name: dev-run
image: appleboy/drone-ssh image: appleboy/drone-ssh
pull: if-not-exists pull: if-not-exists
settings: settings:
@ -95,7 +95,7 @@
event: [push, pull_request] event: [push, pull_request]
branch: [development] branch: [development]
- name: notify - name: notify
image: fifsky/drone-wechat-work image: fifsky/drone-wechat-work
pull: if-not-exists pull: if-not-exists
# pull: always # pull: always
@ -117,4 +117,3 @@
status: status:
- failure - failure
- success - success
Loading…
Cancel
Save