fe-drone-ci/.drone.yml

82 lines
1.6 KiB
YAML
Raw Normal View History

2021-06-02 10:00:25 +00:00
kind: pipeline
type: docker
name: vue-admin
trigger:
branch: ci
steps:
2021-06-02 11:01:17 +00:00
2021-06-02 14:10:22 +00:00
- name: test
2021-06-02 10:00:25 +00:00
image: node:12.16.1
2021-06-02 14:13:34 +00:00
environment:
2021-06-02 14:27:55 +00:00
ENV_PATH: dev_env_file
2021-06-02 10:00:25 +00:00
commands:
2021-06-02 14:27:55 +00:00
- echo $ENV_PATH
- echo ${ENV_PATH}
2021-06-02 10:00:25 +00:00
2021-06-02 14:10:22 +00:00
# - name: restore-modules
# image: drillster/drone-volume-cache
# volumes:
# - name: modules
# path: /cache
# settings:
# restore: true
# mount:
# - ./node_modules
# - ./yarn.lock
2021-06-02 10:00:25 +00:00
2021-06-02 14:10:22 +00:00
# - name: build
# image: node:12.16.1
# commands:
# - yarn
# - yarn build:prod
2021-06-02 11:18:51 +00:00
2021-06-02 14:10:22 +00:00
# - 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
2021-06-02 11:09:17 +00:00
2021-06-02 10:00:25 +00:00
volumes:
- name: modules
host:
2021-06-02 11:01:17 +00:00
path: /mnt/d/ci_volumes