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