2023-03-19 18:49:43 +00:00
|
|
|
default:
|
2024-02-26 01:27:18 +00:00
|
|
|
image: node:latest
|
2023-02-14 16:17:01 +00:00
|
|
|
tags:
|
2024-02-26 01:27:18 +00:00
|
|
|
- node
|
2023-03-19 18:49:43 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/
|
|
|
|
script:
|
|
|
|
- npm install
|
|
|
|
- npm run build
|
|
|
|
|
|
|
|
deploy-beta:
|
|
|
|
stage: deploy
|
2024-02-26 01:27:18 +00:00
|
|
|
before_script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install ncftp
|
2023-03-19 18:49:43 +00:00
|
|
|
script:
|
|
|
|
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com beta_site build/*
|
|
|
|
environment:
|
|
|
|
name: beta
|
|
|
|
url: http://beta.pls5618.com
|
|
|
|
only:
|
|
|
|
- beta
|
|
|
|
|
|
|
|
deploy:
|
2023-02-14 16:16:00 +00:00
|
|
|
stage: deploy
|
2024-02-26 01:27:18 +00:00
|
|
|
before_script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install ncftp
|
2023-02-14 16:16:00 +00:00
|
|
|
script:
|
2023-04-11 01:35:33 +00:00
|
|
|
- ncftpput -R -u "$ftp_user" -p "$ftp_pass" pls5618.com . build/*
|
2023-02-14 16:16:00 +00:00
|
|
|
environment:
|
|
|
|
name: website
|
2023-03-19 18:49:43 +00:00
|
|
|
url: http://pls5618.com
|
|
|
|
only:
|
|
|
|
- main
|