website/.gitlab-ci.yml
2023-02-17 11:49:19 -05:00

30 lines
566 B
YAML

deploy-beta:
tags:
- website
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
url: http://beta.pls5618.com
except:
- main
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
url: http://pls5618.com
only:
- main