update for new runner
This commit is contained in:
parent
d40a0685bf
commit
62d9ca5dd0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user