updated build/deploy ci

This commit is contained in:
Olivier Demers 2023-02-20 22:05:48 -05:00
parent 720c28e839
commit 4c0fbd31d8

View File

@ -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