This repository has been archived by the owner. It is now read-only.
Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (25 sloc) 463 Bytes
stages:
- deploy_prod
- deploy_dev
deploy_prod:
variables:
DEST_PATH: "/var/www/pulse"
stage: deploy_prod
only:
- master
script:
- npm i
- npm run build -d $DEST_PATH
- rm -rf $DEST_PATH/*
- cp -r dist/* $DEST_PATH
deploy_dev:
variables:
DEST_PATH: "/var/www/pulse-beta"
stage: deploy_dev
only:
- devel
script:
- npm i
- npm run build
- rm -rf $DEST_PATH/*
- cp -r dist/* $DEST_PATH