CI : transfer test on prod
This commit is contained in:
parent
6baadb4e37
commit
7a2e91ff0a
1 changed files with 24 additions and 17 deletions
|
|
@ -1,26 +1,33 @@
|
||||||
stages:
|
stages:
|
||||||
- build and deploy
|
- build and deploy
|
||||||
|
|
||||||
|
# build and deploy:
|
||||||
|
# stage: build and deploy
|
||||||
|
# only:
|
||||||
|
# - main
|
||||||
|
# image: node:latest
|
||||||
|
# before_script:
|
||||||
|
# - apt-get update -qq && apt-get install -y -qq lftp
|
||||||
|
# script:
|
||||||
|
# - npm install
|
||||||
|
# - npm run build
|
||||||
|
# - |
|
||||||
|
# cd dist
|
||||||
|
# lftp -c "
|
||||||
|
# set ftp:ssl-allow no;
|
||||||
|
# open -u $USERNAME,$PASSWORD $HOST;
|
||||||
|
# mirror --reverse --verbose --ignore-time --parallel=10 \
|
||||||
|
# -x 'accounts/' \
|
||||||
|
# -x 'cache/' \
|
||||||
|
# -x 'sessions/' \
|
||||||
|
# site site;
|
||||||
|
# mirror --reverse --verbose --ignore-time --parallel=10 \
|
||||||
|
# assets assets;
|
||||||
|
# quit"
|
||||||
build and deploy:
|
build and deploy:
|
||||||
stage: build and deploy
|
stage: build and deploy
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
image: node:latest
|
image: node:latest
|
||||||
before_script:
|
|
||||||
- apt-get update -qq && apt-get install -y -qq lftp
|
|
||||||
script:
|
script:
|
||||||
- npm install
|
- touch test.txt
|
||||||
- npm run build
|
|
||||||
- |
|
|
||||||
cd dist
|
|
||||||
lftp -c "
|
|
||||||
set ftp:ssl-allow no;
|
|
||||||
open -u $USERNAME,$PASSWORD $HOST;
|
|
||||||
mirror --reverse --verbose --ignore-time --parallel=10 \
|
|
||||||
-x 'accounts/' \
|
|
||||||
-x 'cache/' \
|
|
||||||
-x 'sessions/' \
|
|
||||||
site site;
|
|
||||||
mirror --reverse --verbose --ignore-time --parallel=10 \
|
|
||||||
assets assets;
|
|
||||||
quit"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue