update for new runner

This commit is contained in:
Olivier Demers 2023-09-27 20:18:31 +00:00
parent d40a0685bf
commit 62d9ca5dd0

View File

@ -1,6 +1,7 @@
default:
image: node:latest
tags:
- website
- node
stages:
- build
@ -12,14 +13,15 @@ build:
paths:
- build/
script:
- echo "Build"
- npm install
- npm run build
deploy-beta:
stage: deploy
before_script:
- apt-get update
- apt-get install ncftp
script:
- echo "Deploy to beta server"
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com beta_site build/*
environment:
name: beta
@ -29,8 +31,10 @@ deploy-beta:
deploy:
stage: deploy
before_script:
- apt-get update
- apt-get install ncftp
script:
- echo "Deploy to server"
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com . build/*
environment:
name: website