This commit is contained in:
Olivier Demers 2024-02-23 11:51:49 -05:00
commit 233f4c8407

View File

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