updated build/deploy ci
This commit is contained in:
parent
720c28e839
commit
4c0fbd31d8
@ -1,11 +1,22 @@
|
||||
deploy-beta:
|
||||
default:
|
||||
tags:
|
||||
- website
|
||||
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- echo "Build"
|
||||
- npm install
|
||||
- npm run build
|
||||
|
||||
deploy-beta:
|
||||
stage: deploy
|
||||
script:
|
||||
- echo "Deploy to beta server"
|
||||
- npm install
|
||||
- npm run build
|
||||
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com beta_site build/*
|
||||
environment:
|
||||
name: beta
|
||||
@ -14,16 +25,12 @@ deploy-beta:
|
||||
- beta
|
||||
|
||||
deploy:
|
||||
tags:
|
||||
- website
|
||||
stage: deploy
|
||||
script:
|
||||
- echo "Deploy to server"
|
||||
- npm install
|
||||
- npm run build
|
||||
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com build/*
|
||||
environment:
|
||||
name: beta
|
||||
name: website
|
||||
url: http://pls5618.com
|
||||
only:
|
||||
- main
|
||||
|
Loading…
x
Reference in New Issue
Block a user