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
|
||||
|
||||
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
|
||||
commands:
|
||||
- yarn
|
||||
- yarn build:prod
|
||||
- echo ${dev_env_file}
|
||||
|
||||
- name: rebuild-modules
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: modules
|
||||
path: /cache
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- ./node_modules
|
||||
- ./yarn.lock
|
||||
# - name: restore-modules
|
||||
# image: drillster/drone-volume-cache
|
||||
# volumes:
|
||||
# - name: modules
|
||||
# path: /cache
|
||||
# settings:
|
||||
# restore: true
|
||||
# mount:
|
||||
# - ./node_modules
|
||||
# - ./yarn.lock
|
||||
|
||||
- name: scp
|
||||
image: appleboy/drone-scp
|
||||
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: build
|
||||
# image: node:12.16.1
|
||||
# commands:
|
||||
# - yarn
|
||||
# - yarn build:prod
|
||||
|
||||
- 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
|
||||
# - name: rebuild-modules
|
||||
# image: drillster/drone-volume-cache
|
||||
# volumes:
|
||||
# - name: modules
|
||||
# path: /cache
|
||||
# settings:
|
||||
# rebuild: true
|
||||
# mount:
|
||||
# - ./node_modules
|
||||
# - ./yarn.lock
|
||||
|
||||
# - name: scp
|
||||
# image: appleboy/drone-scp
|
||||
# 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:
|
||||
- name: modules
|
||||
|
|
Loading…
Reference in New Issue