Update .drone.yml
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
ec6a8de310
commit
eb7f8ee513
112
.drone.yml
112
.drone.yml
|
@ -6,65 +6,71 @@ trigger:
|
||||||
branch: ci
|
branch: ci
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: restore-modules
|
|
||||||
image: drillster/drone-volume-cache
|
|
||||||
volumes:
|
|
||||||
- name: modules
|
|
||||||
path: /cache
|
|
||||||
settings:
|
|
||||||
restore: true
|
|
||||||
mount:
|
|
||||||
- ./node_modules
|
|
||||||
- ./yarn.lock
|
|
||||||
|
|
||||||
- name: build
|
- name: test
|
||||||
image: node:12.16.1
|
image: node:12.16.1
|
||||||
commands:
|
commands:
|
||||||
- yarn
|
- echo ${dev_env_file}
|
||||||
- yarn build:prod
|
|
||||||
|
|
||||||
- name: rebuild-modules
|
# - name: restore-modules
|
||||||
image: drillster/drone-volume-cache
|
# image: drillster/drone-volume-cache
|
||||||
volumes:
|
# volumes:
|
||||||
- name: modules
|
# - name: modules
|
||||||
path: /cache
|
# path: /cache
|
||||||
settings:
|
# settings:
|
||||||
rebuild: true
|
# restore: true
|
||||||
mount:
|
# mount:
|
||||||
- ./node_modules
|
# - ./node_modules
|
||||||
- ./yarn.lock
|
# - ./yarn.lock
|
||||||
|
|
||||||
- name: scp
|
# - name: build
|
||||||
image: appleboy/drone-scp
|
# image: node:12.16.1
|
||||||
settings:
|
# commands:
|
||||||
host: 124.156.152.247
|
# - yarn
|
||||||
username:
|
# - yarn build:prod
|
||||||
from_secret: ssh_username
|
|
||||||
password:
|
|
||||||
from_secret: ssh_pwd
|
|
||||||
port: 8011
|
|
||||||
target:
|
|
||||||
- /mnt/d/deploy/fe/cidemoadmin
|
|
||||||
source:
|
|
||||||
- dist
|
|
||||||
- docker-compose.yml
|
|
||||||
- nginx.conf
|
|
||||||
- frpc.ini
|
|
||||||
|
|
||||||
- name: deploy
|
# - name: rebuild-modules
|
||||||
image: appleboy/drone-ssh
|
# image: drillster/drone-volume-cache
|
||||||
settings:
|
# volumes:
|
||||||
host: 124.156.152.247
|
# - name: modules
|
||||||
username:
|
# path: /cache
|
||||||
from_secret: ssh_username
|
# settings:
|
||||||
password:
|
# rebuild: true
|
||||||
from_secret: ssh_pwd
|
# mount:
|
||||||
port: 8011
|
# - ./node_modules
|
||||||
script:
|
# - ./yarn.lock
|
||||||
- cd /mnt/d/deploy/fe/cidemoadmin
|
|
||||||
- docker-compose down
|
# - name: scp
|
||||||
- docker-compose up -d
|
# image: appleboy/drone-scp
|
||||||
- docker-compose logs
|
# settings:
|
||||||
|
# host: 124.156.152.247
|
||||||
|
# username:
|
||||||
|
# from_secret: ssh_username
|
||||||
|
# password:
|
||||||
|
# from_secret: ssh_pwd
|
||||||
|
# port: 8011
|
||||||
|
# target:
|
||||||
|
# - /mnt/d/deploy/fe/cidemoadmin
|
||||||
|
# source:
|
||||||
|
# - dist
|
||||||
|
# - docker-compose.yml
|
||||||
|
# - nginx.conf
|
||||||
|
# - frpc.ini
|
||||||
|
|
||||||
|
# - name: deploy
|
||||||
|
# image: appleboy/drone-ssh
|
||||||
|
# settings:
|
||||||
|
# host: 124.156.152.247
|
||||||
|
# username:
|
||||||
|
# from_secret: ssh_username
|
||||||
|
# password:
|
||||||
|
# from_secret: ssh_pwd
|
||||||
|
# port: 8011
|
||||||
|
# script:
|
||||||
|
# - cd /mnt/d/deploy/fe/cidemoadmin
|
||||||
|
# - docker-compose down
|
||||||
|
# - docker-compose up -d
|
||||||
|
# - docker-compose logs
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: modules
|
- name: modules
|
||||||
|
|
Loading…
Reference in New Issue