Merge branch 'beta' of https://git.demerso.net/pls5618/website into beta
This commit is contained in:
commit
233f4c8407
@ -1,6 +1,7 @@
|
|||||||
default:
|
default:
|
||||||
|
image: node:latest
|
||||||
tags:
|
tags:
|
||||||
- website
|
- node
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
@ -12,14 +13,15 @@ build:
|
|||||||
paths:
|
paths:
|
||||||
- build/
|
- build/
|
||||||
script:
|
script:
|
||||||
- echo "Build"
|
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
||||||
deploy-beta:
|
deploy-beta:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
before_script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install ncftp
|
||||||
script:
|
script:
|
||||||
- echo "Deploy to beta server"
|
|
||||||
- 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
|
||||||
@ -29,8 +31,10 @@ deploy-beta:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
before_script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install ncftp
|
||||||
script:
|
script:
|
||||||
- echo "Deploy to server"
|
|
||||||
- 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: website
|
name: website
|
||||||
|
Loading…
x
Reference in New Issue
Block a user